If the java code cannot find a resource then it returns the integer value 0 as the resource identifier for the requested resource.
So:
Resources$NotFoundException: String resource ID #0x0
Means that a string resource has been requested somewhere in the java but not found - the requested string resource has either:
- Not been compiled into the apk file.
- The string resource has been compiled into the apk file but it's not available under the package name being used by the java code.
Try this:
- Compile your project.
- Open the project's Objects\gen\<packagename>\R.java file in a text editor.
- Look for the public static final class string, there may not be such a class defined.
- Do you see any lines:
public static final int <string-resource-name-here>=????;
If R.java doesn't contain a reference to the string resource your java code is requesting then that'll explain the exception.
Martin.