yes now it works !!!

Thanks
On Sat, Jul 25, 2009 at 12:08 AM, Mark Murphy <[email protected]>wrote:

>
> Bibrak Qamar wrote:
> >
> > Hi all,
> >
> > I have an EditText where I get input from user, but then I show the
> > contents of my EditText in a TextView using  the .toString() it returns
> >
> > getClass().getName() + '@' + Integer.toHexString(hashCode())
> >
> > so it show me the classn...@integervalue
> >
> > not the text which user inputs,
> >
> > please guide me how to get my contents, do I have to override
> > .toString() method ?
>
> EditText#getText() does not return a String. It returns an Editable.
> Call toString() on the Editable to get a String representation of the
> contents.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, $35/Year
>
> >
>


-- 
Bibrak Qamar
NUST-SEECS

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to