> Here it is:
<snip>
> 05-12 19:30:15.050: ERROR/AndroidRuntime(219):
> java.lang.RuntimeException: Unable to start activity
> ComponentInfo{com.parisj13.trackmydrinks/com.parisj13.trackmydrinks.Settings}:
> android.view.InflateException: Binary XML file line #24: Error inflating
> class Button
This lines up with the suggestion I made yesterday:
>> > <?xml version="1.0" encoding="utf-8"?>
>> > <PreferenceScreen
>> > xmlns:android="http://schemas.android.com/apk/res/android">
>> > <EditTextPreference
>> > android:key="weight"
>> > android:title="@string/weightlbltxt"
>> > android:defaultValue="145"
>> > />
>> > <ListPreference
>> > android:title="@string/genderlbltxt"
>> > android:entries="@array/genders"
>> > android:defaultValue="Male"
>> > />
>> > <ListPreference
>> > android:title="string/alarmlbltxt"
>> > android:entries="@array/alarms"
>> > android:defaultValue="None"
>> > />
>> > <EditTextPreference
>> > android:key="BAC"
>> > android:title="@string/baclbltxt"
>> > android:defaultValue="0.08"
>> > />
>> > <Button android:id="@+id/btnSetDone"
>> > android:layout_width="wrap_content"
>> > android:layout_height="wrap_content"
>> > android:layout_centerHorizontal="true"
>> > android:text="@string/donetxt"
>> > />
>> > </PreferenceScreen>
>>
>> Try getting rid of the Button.
Button is a widget, not a preference. You cannot put preferences in layout
XML; you cannot put widgets in preference XML.
--
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---