Friday, 29 April 2011

Uninstalling installed applications using Intent in Android


To uninstall the install application using Intent, the code snippet is

Intent intent = new Intent(Intent.ACTION_DELETE);
intent.setData(Uri.parse("package:com.example.android.apis"));
startActivity(intent);


The screenshot is,

SQLITE DB

WE have to be on the DDMS perspective on your Eclipse IDE (Windows > Open Perspective > Other > DDMS), and, the most important, YOUR APPLICATION MUST BE RUNNING SO YOU CAN SEE THE HIERARCHY OF FOLDERS AND FILES. Then you will follow the path data > data > your-package-name > databases > your-database-file.