Hi,
 I have an application in which I refresh the GUI ( set some images in my
layout ) for every one second.
Its all working well when the activity is in foreground. But when it goes to
background ( ex. when I press home button) it starts throwing exception
saying "Resource not found" when try to get the image to apply on UI. Can
any one tell me why is this happening and how to take care of this scenario.

Please find the log from my eclipse below.

05-25 14:22:50.075: WARN/ResourceType(1339): Failure getting entry for
0x7f020061 (t=1 e=97) in package 0 (error -75)
05-25 14:22:50.075: WARN/System.err(1339):
android.content.res.Resources$NotFoundException: Resource ID #0x7f020061
05-25 14:22:50.075: WARN/System.err(1339):     at
android.content.res.Resources.getValue(Resources.java:892)
05-25 14:22:50.075: WARN/System.err(1339):     at
android.content.res.Resources.getDrawable(Resources.java:580)
05-25 14:22:50.075: WARN/System.err(1339):     at
android.view.View.setBackgroundResource(View.java:7533)
05-25 14:22:50.085: WARN/System.err(1339):     at
android.sample.MyActivity.setImgAndPerc(MyActivity.java:2879)


Thanks,
Shashidhar

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