I can successfully run these pieces of codes in android versions #4 #5 #6 without any difficulty.

But now it has problem in running on versions #7 #8 and #9.

Please Help !!!

The ERROR is in this line: startActivity(intent); // error

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory() + "/sega" +"pac01")), "package:application/com.explusalpha.MdEmu");
startActivity(intent); // the Error is displayed here in version 7 and above`

0 Answers