简体   繁体   中英

How to remove cancel button from inbuilt UI of startActivity (intent),

[This image came after startActivity (intent)][1] I am installing downloaded APK file And I got this inbuilt UI after startActivity (intent) And I am not able to remove cancel button. It will be very grateful, please help me out

below is my code part:

    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.setDataAndType(Uri.fromFile(new File(APK_FULL_PATH)), "application/vnd.android.package-archive");
    intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    context.startActivity(intent);

The installation happens outside of your app, unless you have a manufacturer certificate.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM