I’m writing on a custom view in android. It uses some png’s, provided as resources in the drawable-folder (I put it in all of the drawable folders now, just to make sure) of my project.
Unfortunately, when I startup the app, I get a force close and the last thing the log says is: "WARN/ResourceType(261): Resources don't contain package for resource number 0x7f020002" (The Hex-Number is the first icon I intend to load).
Now for the curious thing: The graphical layout-editor of the eclipse adt plugin has no problems whatsoever loading an displaying the icons in its design view. It’s only when I start up the actual app (emulator or actual cellphone), that android can’t find the resources.
I tried cleaning the project and refreshing the file structure. That didn’t quite work out -.-
EDIT: I just realized that I can’t even load a string resource. The problem seems to exist for all resources. Do I have to do something, before the resources become available?
Hope someone can help me,
thx in advance
kk, this year’s dumbness awards go to me. I was using
Resources.getSystem().get...instead ofthis.getContext().getResources().get...thx to all of you for your help