Skip to main content

How to Uninstall the ANDROID App through Java Code...

We can uninstall an installed application on your  Android device.

Steps-

1. Create an intent object with an action ACTION_DELETE.
2. Give the data as the package name.
 and ,
// Code to uninstall the app
Intent intent = new Intent(Intent.ACTION_DELETE);
intent.setData(Uri.parse("package:com.package.Appname"));
startActivity(intent);

Comments