Resource missing error, but its there.

by Brill Pappin » Sat, 22 Jan 2011 15:51:30 GMT


Sponsored Links
 For some reason, I'm getting this:

01-22 07:46:15.226: ERROR/AndroidRuntime(8345): Caused by: 
android.content.res.Resources$NotFoundException: String resource ID 
#0x7f090069

But the resource *is* there and the R class has the generated ID.

Anyone have any idea how i can resolve this?
(yes, I've tried a clean build)

- Brill Pappin

-- 



Re: Resource missing error, but its there.

by Dianne Hackborn » Sun, 23 Jan 2011 03:52:33 GMT


 Do you have a value defined for whatever config you are in?  If you don't
have a default value set, this can cause the lookup to fail.








-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 


Sponsored Links


Re: Resource missing error, but its there.

by Brill Pappin » Sun, 23 Jan 2011 06:16:52 GMT


 I delete this post a few minites after I posted it :)

Turns out I was mistakenly asking the system resources to get the local 
string resource... which of course wont work very well :)

One of those little lines of code you ignore that causes you to bang your 
head agains the keyboard... and as soon as you stop looking at it, its 
obvious :)

- Brill Pappin

-- 



Other Threads

1. glDeleteBuffers crashes

Hi,

I tried to use VBO on 1.6 Android SDK and get a crash whenever I try
to give the VBO id free using glDeleteBuffers. The issue has already
been filed here:

http://code.google.com/p/android/issues/detail?id=4273

Is there any way of giving a VBO id free, then? Otherwise I'm afraid
that I can't use VBO because I might run out of graphics memory/buffer
IDs.

Thanks!

-- 

2. first call to setContentView taking more than 10 seconds

My feeling was what I did was bad so your comment of
"Oh, heavens, please don't do that. You're begging for a memory leak.
"
is inline with my feeling about what I did. But I am not 100% sure why
I would have a memory leak.

The time is almost all spend in the call to setContentView

What I meant by 4 views was 4 layouts. Each layout has several
textViews,editTexts,imageButtons,Buttons and a list view. I use the
vewFlipper so that I can animate and the switch between screens.








-- 

3. Opening main.xml causes Eclipse to crash out

4. Showoff: manup NEXDESIRE v1.0r2

5. Trying to start the Hello World tutorial - can't create an AVD. Help!

6. Android Hardware compliance rules?

7. java code footprint