• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Code Troubleshoot

Code:
InputStream ins = Resources.getSystem().openRawResource(R.raw.logical_reasoning);

I broke some code by putting in a very simple line. I put the logical_reasoning file into a folder called raw within the res folder. It was assigned a place in R so theres some problem with this assignment I think.

I'm very inexperienced with coding in general and have only had a few java courses. Can anyone help?
 
After fighting this thing for awhile i discovered something of a workaround.

When using this line of code one level up (in an activity as opposed to one of my java classes) this problem doesn't happen. I'm going to pass the data down to work around this problem although this messes up my neat encapsulation. Any idea whats going on?
 
Back
Top Bottom