You can't do this. You must go through the UI.
2011/6/27 Jérôme Beau <[email protected]>
> By debugging the Android source code, I can see that the native activity
> manager returns -1 (IActivityManager.START_INTENT_NOT_RESOLVED), when asked
> to:
>
> startActivity(
> android.app.ActivityThread$ApplicationThread@40513a00,
>
> Intent { act=android.intent.action.PACKAGE_INSTALL
> dat=/android_asset/Android-release.apk
> typ=application/vnd.android.package-archive flg=0x10000000 },
> "application/vnd.android.package-archive",
> grantedUriPermissions = null,
> grantedMode = 0,
> resultWho = 0,
> requestCode = -1,
> onlyIfNeeded = false,
> debug = false
> )
>
> Does someone know if this because nobody listens (have intent filters)
> to android.intent.action.PACKAGE_INSTALL ? Such a Intent constant seems to
> be used nowhere.
>
> Thanks.
>
> --
> 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
>
--
Dianne Hackborn
Android framework engineer
[email protected]
Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails. All such
questions should be posted on public forums, where I and others can see and
answer them.
--
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