Here the blow code is used to call .apk file from the android programmatically.
Status.apk is the .apk file name.you can use your .apk file name.
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(
Uri.fromFile(new File(Environment.getExternalStorageDirectory()
+ "/" + "Status.apk")),
"application/vnd.android.package-archive");
startActivity(intent);
Status.apk is the .apk file name.you can use your .apk file name.
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(
Uri.fromFile(new File(Environment.getExternalStorageDirectory()
+ "/" + "Status.apk")),
"application/vnd.android.package-archive");
startActivity(intent);
No comments:
Post a Comment