You are using the bool resource where a string is expected.
You can find which resource is being used incorrectly by opening your generated R.java file and searching for resource identifiers from the logcat message:
0x7f08002b 0x7f08002c 0x7f08002d
All three should be from your bool.xml file ("t = 0x12" in the warning message means that the resources are TYPE_INT_BOOLEAN ).
Then find where these resource identifiers are used in your project (perhaps an xml layout, but maybe anywhere) and make sure the types match.
Here is an example TextView that will generate this log message. If in my res / values /bool.xml I have:
<resources> <bool name="foo_flag">false</bool> </resources>
I can incorrectly refer to it from the XML layout file:
<TextView android:id="@+id/foo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@bool/foo_flag"></TextView>
When I run this application, I will get a warning message, since the text expects a string resource, not a bool (my application looks as expected, although, since the flag is converted to the string "false").
Mike Feb 05 '11 at 1:50 2011-02-05 01:50
source share