With services there are 2 ways to work with :

  1. One is to use startService(Intent) to start the service and stopService(Intent) to stop the service from within your activity. With this solution you cannot communicate directly with the service, but you can use SQLITE as a layer between activities and services.
  2. The second is to use bindService() to bind the service with the activity. With this the service is alive all the time the activity that is bind to is alive. With this method you can communicate with the service directly.

I will write a simple tutorial about the second option.

I use Eclipse and ADT Plugin for Eclipse . This will do some background work.

More >