安装成功后挂钩

发布于 2024-10-07 20:08:14 字数 87 浏览 0 评论 0 原文

我有一个活动启动包管理器来安装手机 SDCard 中包含的应用程序。

如果安装成功|不成功,是否有某种钩子会被执行?

非常感谢。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

何必那么矫情 2024-10-14 20:08:14

您可以在原始应用程序中注册一些内容以获取 ACTION_PACKAGE_ADDED 广播(新安装的应用程序不会收到此广播)

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

不确定是否有任何失败(或用户决定不确认安装)

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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文