Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

This is a way of programatically installing APKsprogramatically installing APKs

the code snippet you're looking for is:

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory() + "/download/" + "app.apk")),"application/vnd.android.package-archive");
startActivity(intent);

This is a way of programatically installing APKs

the code snippet you're looking for is:

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory() + "/download/" + "app.apk")),"application/vnd.android.package-archive");
startActivity(intent);

This is a way of programatically installing APKs

the code snippet you're looking for is:

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory() + "/download/" + "app.apk")),"application/vnd.android.package-archive");
startActivity(intent);
Source Link
Martyn
  • 2.6k
  • 1
  • 18
  • 24

This is a way of programatically installing APKs

the code snippet you're looking for is:

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory() + "/download/" + "app.apk")),"application/vnd.android.package-archive");
startActivity(intent);