I’m developing an application for mobiles and tablet in Android. I’m using Android 2.2
In broadcast receiver, we can put some simple process (small process/small running module code snippet). It is not suited for long running process/Long running module like gps location capturing,etc.
Can we start a service (user defined service – not a Android service) from the broadcast receiver?
Yes, you can start a service from
BroadcastReceiver. You actually needContextto start aService. For example: