Below code will uninstall the application:
Intent intent = new Intent(Intent.ACTION_DELETE);
intent.setData(Uri.parse("package:" + mPkg));
startActivity(intent);
Intent intent = new Intent(Intent.ACTION_DELETE);
intent.setData(Uri.parse("package:" + mPkg));
startActivity(intent);
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.
ReplyDeleteThanks in advance.