Delete my application programmatically (Android)

Posted by Vaghela M.R - Android Devloper on Stack Overflow See other posts from Stack Overflow or by Vaghela M.R - Android Devloper
Published on 2012-05-07T14:03:25Z Indexed on 2012/12/07 11:04 UTC
Read the original article Hit count: 191

Filed under:
|

I want to uninstall my application on button click. For this I am using following code.

Uri packageURI = Uri.parse("package:"+packageName);
Intent uninstallIntent = new Intent(Intent.ACTION_DELETE, packageURI);
startActivity(uninstallIntent);

It gives me result, but I want to delete directly without click on "Ok" button of dialog with message "This application will be Uninstalled".

I just want uninstalling application directly.

© Stack Overflow or respective owner

Related posts about android

Related posts about uninstall