开发者

Hook after successful installation

开发者 https://www.devze.com 2023-01-30 23:40 出处:网络
I got an activi开发者_运维技巧ty that launches the package manager for installing an application contained in the phone\'s SDCard.

I got an activi开发者_运维技巧ty that launches the package manager for installing an application contained in the phone's SDCard.

Is there some kind of hook that gets executed if the installation was successful|unsuccessful?

Thanks a bunch.


You might register something in your original application for broadcasts of ACTION_PACKAGE_ADDED (the newly installed application won't receive this broadcast)

http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_ADDED

Not sure if there's anything for failure (or user decision not to confirm the installation)

0

精彩评论

暂无评论...
验证码 换一张
取 消