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.
当调用 BroadcastReceiver onReceive() 时,我需要一个对话框或自定义对话框!
任何人都知道..请帮助我提前谢谢!
调用startActivity()提供的Contextto onReceive(),包括Intent.FLAG_ACTIVITY_NEW_TASK在Intent你传递给的标志中startActivity()。
startActivity()
Context
onReceive()
Intent.FLAG_ACTIVITY_NEW_TASK
Intent
请注意,在没有用户启动的情况下启动活动可能会被用户认为是糟糕的形式。