When I installed new APK from another App on Android 2.1, I just used:
Intent intent2 = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory()+"/Download/" + "app.apk")), "application/vnd.android.package-archive");
startActivity(intent2);
It opened new install dialog and i could use it.
Now, I try the same code on Gingerbread 2.3.3, and when I start this install intent, it shows me a selection "select action using application". With the following choices: Google talk, video, videotalk, DRM, Market.
What happened? Did the install intents changed in Gingerbread? How to make new install intent at Android Gingerbread? Thanks