Installing Multiple Apks At Once
I wanted to install multiple APKs at a time because I am having one main app that does everything and all the other apps have a service and an activity that has to be put on the de
Solution 1:
I had to do something like this for updating my multiple Enterprise APKs. I downloaded the APK from a REST API/ database. Then once I had the file I started the install of the app in program by calling:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(fileName)), "application/vnd.android.package-archive");
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent);
This will start the installer and install the APK.
Solution 2:
You can use adb via console/cmd "adb install com.example". Which OS are you running? Write a little script to install them all.
Post a Comment for "Installing Multiple Apks At Once"