title: store data in every minute what should use Service, AsyncTask
body: <p>I want to store data in database in every minute . For the same what should I use Service, AsyncTask or anything else. I go through various link which made me more confused . </p>
  
  <p>I read the developer guide and came to know about getWritableDatabase</p>
  
  <blockquote>
    <p>Database upgrade may take a long time, you should not call this method from the application main thread,</p>
  </blockquote>
  
  <p>Then first I think I will use AsyncTask then about this</p>
  
  <blockquote>
    <p>AsyncTasks should ideally be used for short operations (a few seconds at the most.) </p>
  </blockquote>
  
  <p>After that I think I can use Service then about Service</p>
  
  <blockquote>
    <p>A Service is not a thread. It is not a means itself to do work off of the main thread (to avoid Application Not Responding errors). </p>
  </blockquote>
  
  <p>Here I am not able to understand what  should I use to store data in database periodically. Please help me here as struck badly.</p>
  
  <p>Thanks in advance </p>