title: Which service should I use?
body: <p>I got 2 classes: A(Activity subclass) which generates the phone location infinitely and class B (thread subclass) which takes the location from A and send it to the db.
  Since it's an activity it's stop generating the locations once I close my application so I guess service would make the job.</p>
  
  <p>I read about services in <a href="http://developer.android.com/guide/components/services.html" rel="nofollow">here(http://developer.android.com)</a></p>
  
  <p>but I couldn't understand <strong>which</strong> service should I use and how?
  The change that I'm planning to do is to turn A into a service and create class C(activity) which start &amp; stop A.</p>
  
  <p>Thanks.</p>