Friday, August 6, 2010

Uninstalling application using Intent in Android

AIM: To uninstall a  application using Intent in Android by its package name.
Solution:
// add this few lines anywhere  
Intent i = new Intent(Intent.ACTION_DELETE);
i.setData(Uri.parse("package:com.samplebrightness"));
startActivity(i);


//end 

2 comments:

Android Developers Blog

Ram's shared items

Amazon Product Ads