0

I have an app where I am storing the usernames. Once the user clicks on his username, it goes to the login screen. Can it be done that the username be already inputted in the login screen. , so that the user only has to enter his password. Can we do so with Edittext?

Umang
  • 583
  • 2
  • 12
  • 28

1 Answers1

1

Yes.

Use SharedPreferences to store previously entered data and setText on the EditText to set the text. Have a look at this.

Community
  • 1
  • 1
Austin Hanson
  • 21,820
  • 6
  • 35
  • 41
  • 1
    can you please elaborate on this? I am not able to clearly understand from the link you gave me. – Umang Aug 09 '11 at 05:41