Hi,
Looks like the path of apk is wrong and it shoudn't be start with
"file:///" protocol. Place your apk in "android_asset" and give the path
direclty like
"Uri.parse(/android_asset/otherApk.apk"
Thanks,
Maha
2011/5/31 Jérôme Beau <[email protected]>
> Hello Mah and all,
>
> I have exactly the same problem as Surfer has, with the two conditions you
> mention met. I have sign my application with the platform (SDK for the
> moment, a real one later on) key+cert, and
> have android:sharedUserId="android.uid.system" (as well as the
> granted android.permission.INSTALL_PACKAGES permission) in my manifest.
> But still, after running :
>
> Intent myIntent = new Intent(Intent.ACTION_PACKAGE_INSTALL, Uri.parse("
> file:///android_asset/otherApp.apk"));
>
> myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
>
> startActivity(myIntent);
>
>
> I still get an exception with "No Activity found to handle Intent {
> act=android.intent.action.PACKAGE_INSTALL
> dat=file:///android_asset/otherApp.apk flg=0x10000000 }"
>
> Does this mean this no system activity (such as the PackageInstallActivity)
> is able to handle such an intent ?
>
> Thanks for your help.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en