title: Android - repeating WebService call
body: <p>I need to consume a JSON webservice very often (every 5,10 sec tops). </p>
  
  <p>I have the webservice call implemented in an AsyncTask that is performed whenever I press a button, for testing purposes.</p>
  
  <p>Should I use Handlers, Timers or even the AlarmManager? </p>
  
  <p>I am a bit confused since AsyncTask creates its own thread, but won't any of these methods create another thread, thus creating a thread which will create another thread?</p>
  
  <p>I implemented it using the AsyncTask because I cannot afford for the application to hang whenever there's a problem in a webservice call, so if the first call failed, if the second succeeds there shouldn't be any problem and the data I'm fetching will show up the second time the task is performed.</p>
  
  <p>(GCM could be a solution, but right now I need to use polling instead of notifications..)</p>
  
  <p>thanks in advance</p>