title: How to write to a file in the internal storage with an asynctask in a service?
body: <p>I can't use the getFilesDir() in an asynctask which is in a service.
  I saw this post:
  <a href="https://stackoverflow.com/questions/14204980/android-writing-to-a-file-in-asynctask">Android: Writing to a file in AsyncTask</a>
  It solves the problem in an activity but i dont find a way to do this in a service.
  How to write to an internal storage file with an asynctask in a service?
  This is my code in the asynctask:</p>
  
  <pre><code>  File file = new File(getFilesDir() + "/IP.txt");
  </code></pre>