Greeting everyone!! I am creating an android application on it i have to make an option of uninstalling the installed application.
I have listed the installed application using the following code.
Here is my code.
packageManager = getPackageManager();
List<ApplicationInfo> list = packageManager.getInstalledApplications(PackageManager.GET_META_DATA);
PACKAGENAME = getApplicationContext().getPackageName();
new LoadApplications().execute();
But i don't know how to uninstall the apps by presenting my code on OnClickListener.
Please give me some suggestion.