I just ran into this and thought I would post this for anyone else who
might be struggling with the same problem.

In creating preferences, I had the following code in res/xml to define
my preference activity:

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/
android">
        <CheckboxPreference
                android:key="App_Start_Notification"
                android:title="Notify When AppSwipe Starts"
        />
        <CheckboxPreference
                android:key="Boot_Notification"
                android:title="Notify On Boot"
        />
</PreferenceScreen>

ADT did not complain about this (and is usually pretty good about
catching errors) so I thought everything was fine.  However, when I
went to access my preference activity I got a crash and logcat gave a
ClassNotFoundException.

Turns out it was a simple change: Checkbox should have been CheckBox!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to