As of 4.2, using the following code to install an APK, the install fails if the APK version is lower than the currently installed version. Is there a PutExtra() that will allow the downgrade?
File file = new File(dir, "App.apk");
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(file), "application/vnd.android.package-archive");
startActivity(intent);
Or do I need to do it a different way?