当用户尝试启动应用程序时,我想禁止该应用程序,然后调用另一个应用程序。示例 我希望用户在启动特定系统应用程序(设置应用程序等)之前对其进行身份验证。每次用户启动设置应用程序时都应弹出身份验证应用程序
我知道您将不得不使用广播接收器和意图,但不知道如何去做。
Sounds like you should create a "lib" project that have public interfaces that you can use. Then share them between the apps instead of trying to execute another app?
But what I know this is not possible to actually execute up another app, since this then gives dependency to something that you don't know if it is installed. It must already been started if the intents should work.
Also like the answer before, it could be used for abuse.
Look at this link for more information: http://mylifewithandroid.blogspot.com/2007/12/playing-with-intents.html
我有点希望这是不可能的...启动与用户实际单击的应用程序不同的应用程序?为虐待敞开大门。