Première copie de votre fichier APK sur votre device.suppose vous copiez votre apk sur FIE dossier de téléchargement sur la carte SD.
String vsName=Environment.getExternalStorageDirectory().getAbsolutePath()+"/download/";
//your path
File file = new File(vsName, "aaa.apk");//put here your apk file
System.out.println(":"+file);//checking your path is correct or not
Intent install=new Intent(Intent.ACTION_VIEW);
install.setDataAndType(Uri.fromFile(file), "application/vnd.android.package-archive");
install.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(install);
pour désinstaller
Intent intent = new Intent(Intent.ACTION_DELETE, Uri.fromParts("package",
getPackageManager().getPackageArchiveInfo(apkUri.getPath(), 0).packageName,null));
startActivity(intent);
Permettez-moi des commentaires si toute question.
duplicata possible de [Comment puis-je écrire un programme pour installer et désinstaller une application sur un appareil Android?] (Http://stackoverflow.com/questions/3255075/how-can-i-write-a-program-to -install-and-uninstall-un-app-over-android-device) –