APK install request permission

Code
•••
StrictMode.setVmPolicy(new
StrictMode.VmPolicy.Builder().build());
Intent intent = new
Intent(Intent.ACTION_INSTALL_PACKAGE);
intent.setData(Uri.fromFile(new java.io.File(
Environment.getExternalStorageDirectory(),
"your_folder/your_apk_name.apk")));
startActivity(intent);

Permission
android.permission.REQUEST_INSTALL_PACKAGES

Tutorial
•••

IT Ye Phyo (Information Technology)


Comments

Popular posts from this blog