Reputation: 45
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 device for the main one to run, would it be best to include them in a zip I know something like this happens because su.zip does something similar
Upvotes: 2
Views: 2683
Reputation: 9287
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.
Upvotes: 4
Reputation: 2028
You can use adb via console/cmd "adb install com.example". Which OS are you running? Write a little script to install them all.
Upvotes: 0