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()或不应该。我在单独的活动中显示对话框。我怎么能中止该活动的广播?或者,或者,如果我在接收器中中止它,我怎么能在那里继续它?
abortBroadcast()
这可以通过更简单的方法来完成
通过这种方式,您根本不需要打电话abortBroadcast()。