Intent intent = new Intent(Intent.ACTION\_INSTALL\_PACKAGE); intent.setDataAndType( FileContentProvider.createContentUriForFile( CoronaEnvironment.getApplicationContext(), Environment.getExternalStorageDirectory().toString()+"/apk/ox\_main-release.apk" ), "application/vnd.android.package-archive"); intent.setFlags(Intent.FLAG\_ACTIVITY\_NEW\_TASK); CoronaEnvironment.getApplicationContext().startActivity(intent);
I’ve tried to write code for my goal. but I’ve got Runtime Error with this code.
android.content.ActivityNotFoundException: No Activity found to handle Intent…
please help me to fix my code for installing other package.