Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是andorid编程的初学者。
我想要设计应用程序,该应用程序将在默认的 android 消息应用程序之前启动 - 它应该作为 sms lock 应用程序工作。所以我认为我必须创建识别消息应用程序启动并运行我自己的应用程序的服务。该服务的外观代码应该如何?
我的另一个问题是:我可以从我的应用程序中控制默认消息应用程序吗?我只需要在关闭我的应用程序后强制启动或不启动消息应用程序。
请原谅我糟糕的英语,感谢您的宝贵建议。
有一个名为 Textecution 的应用程序可以执行类似的功能。虽然该示例使我看起来有可能,但我还没有找到任何阻止应用程序启动的方法。
我参考了以下相关问题:
Android:开车时阻止短信
在 Android 中禁用短信
如何防止在 android 上“发送短信”/发短信?
如何以编程方式替换 SMS 发送的内部机制