title: Android: AsyncTask recommendations: private class or public class?
body: <p>I'm currently developing some Android Apps in a team and we've used 2 different approaches during the last months (one that i personally prefere, and the other that the other developer prefers).</p>
  
  <p>Although so far the results are the same, this got me wondering...should we: </p>
  
  <ul>
  <li>use AsyncTasks as private classes inside the Activities that use them. </li>
  <li>or use AsyncTasks as separate public classes that receive the context of the activity</li>
  </ul>
  
  <p>Are any of the approachs recommended by Google? </p>
  
  <p>What does your experience say about this (advantages, disadvantages, problems)?</p>