I am trying to download an Android app from a server using the DownloadManager class, install it and then detect when the installation is completed. I am using
DownloadManager
I solved my problem, I added
IntentFilter intentFilter = new IntentFilter(); intentFilter.addAction(Intent.ACTION_PACKAGE_ADDED); intentFilter.addAction(Intent.ACTION_PACKAGE_INSTALL); intentFilter.addDataScheme("package");
before the line :
registerReceiver(installReceiver, intentFilter);