title: Android: Writing to a file in AsyncTask
body: <p>I would love to be able to write to a local directory in my AsyncTask subclass, but I can't seem to figure out how to use getFilesDir(), since I cannot, to my knowledge, create an instance of ContextWrapper and Context in this subclass.</p>
  
  <p>So, what have I tried? I've tried getting the files directory the only way I know how by attempting many different things to create instances of Context and ContextWrapper in order to access the getFilesDir() method. That's it. That's all I know how to do.</p>
  
  <p>I'm probably missing a lot of blatantly obvious things, but I've been working with Android for about 2 days now, so I still don't know how to debug my issues properly.</p>
  
  <p>Any "ExplainLikeImFive" help is greatly appreciated.</p>
  
  <p>EDIT:</p>
  
  <p>From what I know now, you can only get the files directory through an Activity. Why is that?</p>