1) Can I add apk file as expansion file in android. 2) I am trying to launch app directly from external storage but getting error.
code:-
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File("storage/emulated/0/Android/obb/devui1.example.com.testing/main.98376.devui1.example.com.testing.obb/app-debug.apk")), "application/vnd.android.package-archive");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // without this flag android returned a intent error!
startActivity(intent);