문제

I got an activity 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)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top