Tuesday, March 15, 2016

Android Studio error: Expected resource of type raw

In my exercise of setting wallpaper using resource inside APK, I tried to load resource from /res/drawable/ folder. But reported with error of "Expected resource of type raw".


My solution is to create /res/raw/ folder and move the resources to it. And load with R.raw....

This video show how:


No comments: