Hi all, I am writing an android library and am having a problem

basically within my library I am attempting to access a file stored in
the res/raw directory of my library project like so

InputStream inputStream =
Resources.getSystem().openRawResource(R.raw.sample);

ive also tried:

InputStream inputStream =
mContext.getResources().openRawResource(R.raw.sample);

However I get an exception file not found when trying to instantiate
my library from my main project

is it possible to actually do this, and if so how do I go about doing
it?? or do I need to pull in the resource from my main project and
send it to the library?

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