Can we start an activity from BroadcastReceiver?

Ngân Lam

New member
Can we start an activity from BroadcastReceiver?
Answer
It works, of course you have to change package and activity class name to your own. From Docs: Do not start activities from broadcast receivers because the user experience is jarring; especially if there is more than one receiver. Instead, consider displaying a notification.
 

Tìm kiếm

Back
Top