title: Issue creating a file in android
body: <p>I am trying to create a file inside a directory using the following code:</p>
  
  <pre><code>ContextWrapper cw = new ContextWrapper(getApplicationContext());
      File directory = cw.getDir("themes", Context.MODE_WORLD_WRITEABLE);
      Log.d("Create File", "Directory path"+directory.getAbsolutePath());
      File new_file =new File(directory.getAbsolutePath() + File.separator +  "new_file.png");
      Log.d("Create File", "File exists?"+new_file.exists());
  </code></pre>
  
  <p>When I check the file system of emulator from eclipse DDMS, I can see a directory "app_themes" created. But inside that I cannot see the "new_file.png" . Log says that new_file does not exist. Can someone please let me know what the issue is?</p>
  
  <p>Regards,
  Anees</p>