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
-~----------~----~----~----~------~----~------~--~---

Reply via email to