That allows any other application to read or overwrite your file. Is that what you want?
On Wed, May 13, 2009 at 8:06 AM, Scott Slaugh <[email protected]> wrote: > > Here's what I ended up doing when I get the file, which allows me to > continue using the file like I was, but also sets the permissions > correctly without using a shell command. > > private File getAudioFile(String extension) > throws IOException { > > String fileName = "recording" + extension; > FileOutputStream fos = context.openFileOutput(fileName, > Context.MODE_WORLD_READABLE|Context.MODE_WORLD_WRITEABLE); > fos.close(); > > return context.getFileStreamPath(fileName); > } > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

