my question is: How to determine when the user cancels the apk installation? My installation code:
Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(file), "application/vnd.android.package-archive"); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); BroadcastReceiver br = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction();
This way I can detect when the user has installed / updated the package, but cannot detect when the user cancels the apk installation operation. How to solve this?
android
Roman martynov
source share