In my application I am downloading and saving an apk to the SDcard and then I want to start the installation of the apk. I\'m using the following code to attempt this:
Intent intent =new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse(file), "application/vnd.android.package-archive"); activity.startActivity(intent);
Did you try using Uri.fromFile(new File(filePath)) instead of Uri.parse(file)?
Uri.fromFile(new File(filePath))
Uri.parse(file)