[android-developers] Re: Playing recorded sounds in Android 1.5

2009-05-13 Thread Scott Slaugh
to read or overwrite your file. Is that > what you want? > > On Wed, May 13, 2009 at 8:06 AM, Scott Slaugh 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 > &

[android-developers] Re: Playing recorded sounds in Android 1.5

2009-05-13 Thread Scott Slaugh
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" + extensi

[android-developers] Re: Playing recorded sounds in Android 1.5

2009-05-11 Thread Scott Slaugh
ing? > If not, try opening the file yourself and then passing its FileDescriptor to > setDataSource(), instead of specifying the path. > > On Mon, May 11, 2009 at 1:39 PM, Scott Slaugh wrote: > > > I'm just using the built in MediaRecorder and MediaPlayer clases, so, &g

[android-developers] Re: Playing recorded sounds in Android 1.5

2009-05-11 Thread Scott Slaugh
I'm just using the built in MediaRecorder and MediaPlayer clases, so, no I'm not using alsa_sound. However, thanks to some help I was able to discover that the problem is being caused by the permissions set on the recorded file, which is not world-readable in Android 1.5. I was able to fix this

[android-developers] Playing recorded sounds in Android 1.5

2009-05-03 Thread Scott Slaugh
Hi, I have an application that I developed using the Android 1.1 SDK that I am trying to port to Android 1.5. In my application, I record a sound through the microphone and then do various things with it, including playing it back using a MediaPlayer object. My code works fine when I use the 1.