When I try to install an APK using:
val installIntent = Intent(Intent.ACTION_INSTALL_PACKAGE);
installIntent.setData(Uri.fromFile(true_path));
startActivity(installIntent);
I receive the error:
file:///...app-debug.apk exposed beyond app through Intent.getData()
I believe that intents cannot use file:// URIs; how do I build an APK using Android Studio, such that it can be used by an intent?