Yes indeed, ADT doesn't complain about this: your preference can use
any custom class that you define. ADT doesn't currently support
handling custom classes (one day we'll add it) so it doesn't know this
class does not exist till runtime.

R/

On Wed, Sep 16, 2009 at 8:31 PM, Tikoze <janderson....@gmail.com> wrote:
>
> 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 android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to