I am trying to create a file inside a directory using the following 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()); 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?
Regards, Anees