Expected resource of type raw drawable

Try insert + before R.drawable.xxxx

// error
InputStream is = context.getResources().openRawResource(R.drawable.app_sample_code);
 
// ok
InputStream is = context.getResources().openRawResource(+R.drawable.app_sample_code);
This entry was posted in Android Examples Code, Bitmap, drawing, Bugs, warnings, errors. Bookmark the permalink.


Comments are closed.

5,193 views