I have a long running service. When the device goes idle and CPU sleeps the service gets paused. However when I declare a static (in manifest) BroadcastReceiver the phone will execute the onReceive() method even when asleep.
I would like to know how to wakeup my Service and pass some information to it from the BroadcastReceiver. Im completely new to Android development so don’t know anything about the IPC in Android.
I read about bound services but I think this is not my case as I need to service to run in the background.
From your BroadcastReceiver do the following to start MyService:
Replace:
String)