Im writing an application. In the application i download programatically an APK and start an intent which launches the APK installtion.
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory() + "/download/" + "app.apk")),
"application/vnd.android.package-archive");
startActivity(intent);
it all works well.
but when i try, for example, to launch an installation of a coruupted APK
There's a dialog which comes up:
I want to be notified when there's a problem installing the APK (corrupted APK, not enough space, etc...).
So , is there a way (Event or something) to be notified about that, so I can replace the "Parse error" defalt dialog with my own dialog?
thanks!