Installation d'APK en arrière plan
Bonjour,
Donc voila j'essaye d'installer une apk par programmation en voila un code simple qui marche mais qui fait appel au système pour l’installation :
Code:
1 2 3 4
|
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory(), "Info.apk")), "application/vnd.android.package-archive");
startActivity(intent); |
Est ce qu'il y a possibilité d'installer une APK a partir en arrière plan ? si oui, comment procéder ?