Installer application depuis une autre
Bonjour,
Je souhaite installer une application non signée depuis mon application.
J'utilise ceci comme code :
Code:
1 2 3 4 5
|
Uri path = Uri.fromFile(new File("raw/addon.apk"));
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(path, "application/vnd.android.package-archive");
startActivity(intent); |
Et quand j'arrive à ce niveau du code dans mon application, le Package Installer me sort un méchant "Parse Error", "There is a problem parsing the package".
Quelqu'un pourrait m'aider s'il vous plait ?
Merci d'avance.