Hi, I tried this but it didn't work:
@Override
protected void onResume() {
super.onResume();
LayoutInflater inflater1 = (LayoutInflater)
getSystemService(Context.LAYOUT_INFLATER_SERVICE);
final View layout1 = inflater1.inflate(R.layout.add_pwd,
(ViewGroup) findViewById(R.id.content0));
EditText passString = (EditText)
layout1.findViewById(R.id.pass_string);
passString.setText("passwordString");
}
On Sep 2, 10:19 am, Mystique <[email protected]> wrote:
> thank you! I will try in a show while.
>
> On Sep 1, 10:58 pm, Brion Emde <[email protected]> wrote:
>
>
>
> > You should update the value of you EditText in onResume(), which you
> > don't seem to have right now. That is called when your activity
> > returns to the foreground. At that point you should have your new
> > value and you just do a setText() on the EditText to display the new
> > value.
>
> > On Sep 1, 6:49 am, Mystique <[email protected]> wrote:
>
> > > Thanks, I did 1 week ago and receive no reply :D
> > > I thought I can keep it simple this time to have some direction and I
> > > figure it out myself.
>
> > > Here it is, but the formatting is lost.. so hard to read it
> > > here.http://groups.google.com/group/android-developers/browse_thread/threa...
>
> > > On Sep 1, 6:44 pm, Shashidhar <[email protected]> wrote:
>
> > > > Can you please post the code here......
>
> > > > On Wed, Sep 1, 2010 at 3:42 PM, Mystique <[email protected]> wrote:
> > > > > Hi,
>
> > > > > I have an EditText field and a button.
> > > > > My aim is to let user enter text info to the EditText or click the
> > > > > button to launch a dialog to select some checkbox and radio button
> > > > > which it will perform some computation and return a value to display
> > > > > at the EditText field.
>
> > > > > I can't seems to get the value to display at the EditText field after
> > > > > the dialog dismiss. I did try a toast to display the value and it is
> > > > > ok.
> > > > > I *think* the view was not refresh to display the text in the EditText
> > > > > field.
>
> > > > > Can anyone tell me roughly how to do this?
>
> > > > > Cheers.
>
> > > > > --
> > > > > 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]<android-developers%2Bunsubs
> > > > > [email protected]>
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/android-developers?hl=en
--
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