Saturday, August 1, 2015

android: install application or .apk file from SD card progrramatically

Use this code to install .apk in your device from SD card
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File("/sdcard/JellyJumpers.apk")),        "application/vnd.android.package-archive");startActivity(intent);

No comments:

Post a Comment