Service in Android

Service is a fundamental building block in android which works in the background, that is, does its service staying in background and so the user can’t see it. Yes, you got it right , it doesn’t provide a UI. 🙂

A Service can be said to fall in any of the two forms:

1)  Started Service

2)  Bound Service

1)   Started Service: In this type of service, any component can start a service by calling startService() method. The service is stopped if the component stops it by calling stopService() method or else the service will be destroyed as the operation it is performing is completed.

2)   Bound Service: Here, the application component binds to it by calling bindService() method. Bound Service allows components to interact with the service, get results, send requests and even enable InterProcess Communication (IPC). Any number of components can bind with a service and the service persists only till the last component is destroyed.

Note: A service can behave in both the forms even, that is, the same service can be started and at the same time can allow binding too.

This means your service can be started, bound or both.

In the Next Post I’ll be discussing about Started Service with a simple example. Hope this post was useful. 🙂


, , , , ,

  1. #1 by Andy Res on April 12, 2012 - 1:04 am

    Though I’m pretty familiar with Services, it’s a pleasure to read your posts. 🙂

    • #2 by Deepthi G on April 13, 2012 - 5:44 pm

      Thanks a lot for those kind words. Keep reading. 🙂


  2. #3 by mata grzejna on July 9, 2014 - 8:09 am

    Good day! I just wish to give you a big thumbs up for your excellent information you have right
    here on this post. I’ll be returning to your website for more soon.

  3. #4 by Arcane Legends cheats on July 12, 2014 - 1:44 am

    Its like you learn my thoughts! You seem to understand a lot about this,
    like you wrote the book in it or something.
    I feel that you just can do with some p.c. to drive the message home a bit, but instead of that, this is excellent blog.

    An excellent read. I will certainly be back.

  4. #5 by kabel grzewczy on August 7, 2014 - 2:15 pm

    Jedyny producent ogrzewania podłogowego w Polsce, posiadający certyfikację CE.
    Ogrzewanie podłogowe wewnętrzne i zewnętrzne. Sprzedaż internetowa.Producent mat grzewczych, systemów ochrony rur i
    podjazdów przed oblodzeniem, GoldTherm, Gold Therm, Warm Maty, Warm Mata, Warm Kable, Warm Zestaw, maty grzewcze, maty grzejne,
    zestaw przeciwoblodzeniowy rur

  1. Started Service in Android « Android Desk

Leave a Reply to Arcane Legends cheats Cancel reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: