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(file);

When I compile and run the emulator the first 4 lines work fine and it
prints out the file id and the Resources created message, but fails on
the last line with the message:

10-05 03:08:22.896: WARN/ResourceType(218): No package identifier when
getting value for resource number 0x7f040005

I've tried searching Groups and haven't been able to find anyone else
with the same problem. I am doing everything the documentation I have
been able to find says to do, so I must be doing something wrong that
I am not seeing.  Does anyone else have more file experience with
Android that could provide some suggestions?

Kelsey

PS. I am still on SDK 0.9 and haven't upgraded yet.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
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