我将图像id存储在sqlite中,但是当我检索id时,我得到了错误的android.content.res.Resources$NotFoundException: Resource ID #0x42所以我猜holder.myImg.setImageDrawable(c.getResources().getDrawable(99));考虑到图像id存储在sqlite
无论如何,问题是找不到资源。<?$NotFoundException: Drawable com.razorware.cloudcard.app:drawable/alpha_progress with resource ID #0x7f08005bCaused by: android.content.res.Resources$NotFoundException:
Unable to start activity ComponentInfo{com.example.tobias.uebung1/com.example.tobias.uebung1.main}: android.content.res.Resources$NotFoundException: String resource ID #0xfffffffd
at android.app.ActivityThread.performLaunchActivityZygoteInit.java:
MethodAndArgsCaller.run(ZygoteInit.java:866)Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x2
at android.content.res.Resources.getText(Resources.java:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test.pne/com.test.pne.one}: android.content.res.Resources$NotFoundException: String resource ID #0xe
at android.app.ActivityThread.performLaunchActivity(ActivityThread.javacom.android.inte
) ... 22 more
Caused by: android.content.res.Resources$NotFoundException: File res/drawable/common_background.png from drawable resource ID #0x7f020081: .xmlandroid:layout_width="fill