It's not an issue right now, but I decided it would probably be wiser to leave the file private in case it becomes an issue in the future, and changed my code to use a file descriptor.
Thanks for your help! On May 13, 9:20 am, Marco Nelissen <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---

