I eventually got it working by placing the resources into the assets
folder and used

AssetManager assetManager = getResources().getAssets();
return assetManager.open(path);

Where path was simply the filename. Will try to move it to the raw
folder if that's the better way to do it.

On Jun 16, 12:03 am, Mark Murphy <[EMAIL PROTECTED]> wrote:
> aclelland wrote:
> > I've got a large word list which I want to read into my application
> > but I'm having trouble working out where I should put it. I've tried
> > in the /res/values/ folder but the compilers wants XML files.
>
> > Could someone tell me which folder to put these text resources into
> > and if I should be using
> > getResources().openRawResource(ID);
> > to load the text file in via an InputStream.
>
> If you want to use openRawResource(), you want to put the file in
> /res/raw/. This directory is not automatically created by
> activityCreator.py when you create the project, so you'll need to add it
> yourself.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Warescription: All titles, revisions, & ebook formats, just $35/year

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to