Installing an Android app through OTA

I developed 5 Android apps and generated 5 apk files with the same keystore. Of the 5 applications, one application is a home application that contains a common database. All other applications access the database through the content provider.

Now I want the user to download all 5 apk files through the OTA service. After the download has completed the home application, first start the installation, and after the installation is completed automatically, the second application will start the installation, as well as for all 5 apks. Anyway, for this?

+5
source share
1 answer

You can request installation

Intent promptInstall = new Intent(Intent.ACTION_VIEW) 
    .setData(Uri.parse("file:///path/to/your.apk")) 
    .setType("application/vnd.android.package-archive"; 
startActivityForResult(promptInstall);

, , APK. PackageManager, , APK

+5

All Articles