Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatic access to Android's Manage apps

Tags:

android

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.

like image 842
Kawlym Baygh Avatar asked Feb 10 '26 22:02

Kawlym Baygh


1 Answers

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.

like image 63
Kawlym Baygh Avatar answered Feb 15 '26 11:02

Kawlym Baygh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!