title: Track Gps At every 10 minutes using timer in android
body: <p>I am developing an android application and I am using a service that tracks location via GPS every 10 minutes. But when I put the location listener in a timer task, it throws an exception:</p>
  
  <blockquote>
    <p>Cannot put code inside thread that has not called <code>looper.prepare()</code>.</p>
  </blockquote>
  
  <p>Does anyone have any insight on this problem?</p>