title: AsyncTask never finishes when other tasks are running
body: <p>In my app, I show a menu screen immediately to the user and then use an <code>AsyncTask</code> to load some  data from disk. Loading takes about 3 seconds if that's all the app had to do. When the user hits a menu option and the data hasn't loaded yet, a "Please wait, loading" screen appears.</p>
  
  <p>I have two problems:</p>
  
  <ul>
  <li><p>I recently added ads to my app and have found this is making my app hang sometimes because the <code>AsyncTask</code> never finishes loading. What seems to be happening is that the ad banner (I'm using AdMob and this happens when AdSense ads are shown which AdMob do occasionally) is using resources by playing a simple animation and the <code>AsyncTask</code> never gets a chance to finish.</p></li>
  <li><p>I want to play a simple looping animation (e.g. making a view rotate) on my menu screen and this makes the <code>AsyncTask</code> take about 5 times longer to finish which renders the background loading pointless.</p></li>
  </ul>
  
  <p><b>How can I avoid situations where my background data never finishes loading or has such a low priority it takes a long time?</b></p>
  
  <p>I can't seem to find a way to increase the priority of an <code>AsyncTask</code>.</p>