Reputation: 211
Andorid has a Manage apps button, that allows you to manage apps. For each app, you can have the option of moving to sd card or uninstall. You can individually access each app. I want to be able to provide a single button that moves all apps to SD card. Is there a way of programmatically accessing the Manage apps? Does android has any interface/API that allows one to do that.
Upvotes: 3
Views: 1123
Reputation: 211
Actually I figured it out, its possible and very trivial. Code shown below:
Intent intent = new Intent();
intent.setAction(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
Uri uri = Uri.fromParts("package", "com.test.test", null);
intent.setData(uri);
startActivity(intent);
That's is, this will open up the correct screen. All you got to do it look at the provider package. It has all the settings needed for different screens. Thanks for your answers, although they were not helpful at all.
Upvotes: 4
Reputation: 1007124
I want to be able to provide a single button that moves all apps to SD card.
Sorry, this is not possible, except perhaps via custom firmware.
Upvotes: 2