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.
我正在开发一个消息应用程序,其中传入的消息将存储在它自己的收件箱中。但它同时存储在本机消息收件箱和应用程序收件箱中。如何防止邮件在到达应用程序之前到达本机收件箱?
将消息添加到收件箱后,请调用abortBroadcast()BroadcastReceiver。确保您的接收者的优先级高于其他消息传递应用程序的优先级。
abortBroadcast()