I've been trying to get an android application to install an APK on the sdcard programmatically but I'm running into a little trouble.
This is how I'm doing it:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType("ApkFilePath...","application/vnd.android.package-archive");
activity.startActivityForResult(intent,5000);
Now that works ok, it brings the package manager and I can control what to do when the manager finishes installing the APK.
But the issue that I'm having is that if at the end of the installation the user clicks on "Open" instead of "Done" the "OnActivityResult" method is not called, as the manager still exists.... and this presents another issue on another requirement on the system.
Is there a way to know when the user has selected "Open" at the end of the package manager, or is there a way to force the manager to display only the buttons I want it to display?
Really could use the help, I've search everywhere and don't seem to find a solution