U can use yourTextEdit.setHint(some text).this method will put some text in
your edittext but when the user write something it will be hidden.

On Aug 17, 2009 1:13 AM, "Daum" <[email protected]> wrote:


Thanks.

To use below as you suggested, it worked.

=======

editInput = (EditText)findViewById(R.id.Port); ....
 editInput .setText("your String");

On Jul 27, 4:42 pm, Roman <[email protected]> wrote: > Yep,
you can do this. You can...
> > I'm trying to set a text editdialogbox with a default text by
> > program.
> > (I'm using the text editdialogbox  from the AlertDialogSamples
> > prorgam)
>
> > Can a text editdialogbox be set with a default text before a user

> > input his/her own text into the text editdialogbox? > > > If I can, how
should I do? >
> > Thank you.- Hide quoted text -
>
> - Show quoted text -

--~--~---------~--~----~------------~-------~--~----~ You received this
message because you are subs...

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