Making it static doesn't change anything, except that I get the following
again:

09-19 22:04:09.824: ERROR/AndroidRuntime(2716): Caused by:
java.lang.NoSuchMethodException: RunningTaskGallery (Context,AttributeSet)

The constructor that takes a Context and an AttributeSet does indeed exist
and it calls the parent's constructor.  Both my class and constructors are
public.

However, accodring to the Dev Guide documentation it shouldn't matter if it
is static or not.  In fact, it gives an alternative way to reference it if
it is static, but states that you can use either approach.

In my particular case I do not want it to be static.

Thanks,
Justin

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------


On Sun, Sep 20, 2009 at 9:29 AM, John P. <johnny.d.p...@gmail.com> wrote:

>
> Maybe it should be static, like the NotePad example has in
>
> http://developer.android.com/guide/samples/NotePad/src/com/example/android/notepad/NoteEditor.html
> :
>
>    public static class LinedEditText extends EditText { ...
>
>
> On Sep 20, 10:19 am, Justin Anderson <janderson....@gmail.com> wrote:
> > It is a public non-static class.
> >
> > Thanks,
> > Justin
> >
> > On Sep 20, 2009 1:11 AM, "skink" <psk...@gmail.com> wrote:
> >
> > On Sep 19, 8:13 am, MagouyaWare <magouyaw...@gmail.com> wrote: >
> However,
> > this results in: java.l...
> > and what about its visibility? is it public?
> >
> > pskink
> >
> > >
>

--~--~---------~--~----~------------~-------~--~----~
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