我正在尝试开发一个仅当我们在拨号器上调用某个特定号码时才会启动的 android 应用。
过程如下:
1) 应用默认不可见(名称和图标)
2) 当用户调用该特定号码时,应用启动
基本上,该应用程序与安全性有关。
任何关于上述两个问题的想法或帮助将不胜感激。
谢谢。
最佳答案
您需要注册并实现一个 BroadcastReceiver 来获取拨出调用的 Intent。 拦截 Intent 并进行处理。您可能需要 PROCESS_OUTGOING_CALLS 权限。
http://developer.android.com/reference/android/Manifest.permission.html#PROCESS_OUTGOING_CALLS
http://developer.android.com/guide/topics/security/security.html
http://developer.android.com/guide/topics/intents/intents-filters.html
http://developer.android.com/reference/android/content/BroadcastReceiver.html
关于android - 如何检测是否有任何 native 应用程序在 android 中启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7751262/