Error message:
07-04 11:14:43.064:w/resourcetype (2411): No package identifier when getting value for resource number 0x0000001c
07-04 11:14:43.064:w/system.err (2411): android.content.res.resources$notfoundexception:string resource ID #0x1c
Error Location Sample code:
int percent = current * 100/total;
Textview1.settext (percent);
Cause Analysis:
The main reason is that the SetText method of TextView the input int type percent as the resource ID to the project query resource, but the resource can not find the corresponding value, will be reported notfoundexception error.
There are many places in the android that use ID to index resources (such as: Toast.maketext (), etc.), so if you accidentally pass an int type parameter to the method, although the IDE does not make an error at compile time, it is easy to get an error when the corresponding resource is not found in the runtime.
Workaround:
So if you want to display data of type int in TextView, you should convert it to a string type in advance. There are many conversion methods, the simplest of which is to add an empty string after the int type data, such as:
Textview1.settext (percent+ "");
Reference: http://blog.csdn.net/wangfayinn/article/details/7716165
Android Error: W/resourcetype (2411): No package identifier if getting value for resource number 0x