My application has Service and BroadcastReceiver , but how do I start a service directly from BroadcastReceiver ? Via
startService(new Intent(this, MyService.class));
doesn't work in BroadcastReceiver , any ideas?
EDIT:
context.startService (..);
works, I forgot the context part
android broadcastreceiver
Samuel Jan 09 2018-11-11T00: 00Z
source share