[android-developers] Trouble opening a raw resource

2008-10-04 Thread kelseywright
Hello, I am trying to open a file in res/raw. I've tried to open it with code similar to the following: int file = R.raw.myfilename; System.err.println("file:" + file); Resources res = Resources.getSystem(); System.err.println("Resources created"); InputStream compiledIS = res.openRawResource(fi

[android-developers] Re: Trouble opening a raw resource

2008-10-05 Thread kelseywright
No one has any suggestions on how to troubleshoot this? =( On Oct 4, 11:21 pm, kelseywright <[EMAIL PROTECTED]> wrote: > Hello, > > I am trying to open a file in res/raw. I've tried to open it with code > similar to the following: > > int file = R.raw.myfilenam

[android-developers] Re: Trouble opening a raw resource

2008-10-05 Thread kelseywright
This is where I am n00bish. I don't know what it even means by package the R file is created in - I think I don't know enough about the R files. I mean, this file is in a package in my source tree. Is it meanign that package? Or is it something else? Kelsey On Oct 5, 10:18 pm, Steve Oldmeadow <

[android-developers] Re: Trouble opening a raw resource

2008-10-06 Thread kelseywright
urces().openRawResource(R.raw.waypoints); >  dbHelper.readWatpointIn(inputFile); > > Hope this helps > > kelseywright wrote: > > No one has any suggestions on how to troubleshoot this? =( > > > On Oct 4, 11:21 pm, kelseywright <[EMAIL PROTECTED]> wrote: > > >&g

[android-developers] Re: Trouble opening a raw resource

2008-10-06 Thread kelseywright
that is the package I declared in my manifest. Kelsey On Oct 6, 9:23 pm, Steve Oldmeadow <[EMAIL PROTECTED]> wrote: > On Oct 7, 1:07 am, kelseywright <[EMAIL PROTECTED]> wrote: > > > com.l1ghtm4n.text2speech.R     <- this is the one I was importing as > > it co

[android-developers] Re: Trouble opening a raw resource

2008-10-06 Thread kelseywright
t is necessary because you could have several version of your > resources (based on phone configuration such as orientation, language, > etc...). > > Resources.getSystem() does not work because it gives you the system > resources, not your application resources. > > Xav > >

[android-developers] Re: Trouble opening a raw resource

2008-10-07 Thread kelseywright
Does anyone know if this restriction applies to all files? Or just certain formats? I couldn't find it in the documentation. Kelsey On Oct 6, 10:46 pm, kelseywright <[EMAIL PROTECTED]> wrote: > The context issue was my problem and now it can open the fileand > it turns ou

[android-developers] Re: Text2Speech now hosted at google code

2008-09-09 Thread kelseywright
Hello, Is there any documentation on the current state of the code anywhere? Regards, Kelsey Wright On Aug 22, 3:31 pm, l1ghtm4n <[EMAIL PROTECTED]> wrote: > I've decided to open source the Text2Speech project for Android. The > code can be found athttp://code.google.com/p/android-text2speech/

[android-developers] Re: Text2Speech now hosted at google code

2008-09-09 Thread kelseywright
? Kelsey On Sep 9, 2:02 pm, kelseywright <[EMAIL PROTECTED]> wrote: > Hello, > > Is there any documentation on the current state of the code anywhere? > > Regards, > > Kelsey Wright > > On Aug 22, 3:31 pm, l1ghtm4n <[EMAIL PROTECTED]> wrote: > > > I'

[android-developers] Re: Text2Speech now hosted at google code

2008-09-09 Thread kelseywright
lated phonemes) first to file and then play that file. Might > suffice for a first port though. > > Regards > > On Sep 9, 9:24 pm, kelseywright <[EMAIL PROTECTED]> wrote: > > > One think I noticed is that this does not seem compatible with the > > latest release o

[android-developers] Re: Text2Speech now hosted at google code

2008-09-09 Thread kelseywright
This also uses javax.sound to write the sound file in the first place, which will need taken care of. On Sep 9, 4:41 pm, kelseywright <[EMAIL PROTECTED]> wrote: > My concern would be dealing with javax.sound.sampled.AudioFormat > though, which is sprinkled throughout the code, and