Tech tip of this week

UnInstall Application

Below code will uninstall the application:


Intent intent = new Intent(Intent.ACTION_DELETE);
intent.setData(Uri.parse("package:" + mPkg));
startActivity(intent);

1 comment:

  1. Is the recommendation valid for any kind of Android applications or it's just for a specific one? I applied for a position at a mobile app development company (view here) and I should perform a similar task as a test.
    Thanks in advance.

    ReplyDelete