Bonjour,

Je souhaite installer une application non signée depuis mon application.

J'utilise ceci comme code :
Code java : Sélectionner tout - Visualiser dans une fenêtre à part
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.