actualy, it is the other way around. Your object is an EditText and you try
to cast it to something else. String maybe ?


regards,
   Raul


On Mon, Apr 7, 2008 at 11:50 PM, Dan U. <[EMAIL PROTECTED]> wrote:

>
> I don't believe that's the problem. Probably you are casting something
> to an EditText, but it's not an EditText. It looks like a hello world
> application, so perhaps it is a TextView?
>
> On Apr 7, 1:37 pm, "Chris B." <[EMAIL PROTECTED]> wrote:
> > I have been making this program that has a user input their name and
> > then click the ok button.  Now I want to use the buttons. I used the
> > onClickListener code and after using code from one of the API demos i
> > get an Application Error.  The error says:
> >
> > Application Error: com.android
> >
> > An error has occurred in com.android. Unable to start activity
> > ComponentInfo{com.android/com.android.HelloWorld}:
> > java.lang.ClassCastException:
> > Landroid/widget/EditText;.
> >
> > I think it has to do something with it saying "Landroid" but I don't
> > know.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to