title: Is it safe to keep a strong reference to a Fragment in an AsyncTask?
body: <p>Since it's not recommended to keep a strong reference to a <code>Context</code> in a task (the context may get destroyed while the task is still running, but kept in memory by the task), I was wondering if the same applies to Fragments?</p>
  
  <p>Fragments manage their activity reference, and support being retained via <code>setRetainInstance</code>. Can I assume that e.g. creating a non-static inner AsyncTask in a Fragment is safe in terms of not risking to leak <code>$this</code>?</p>