Android edittext : show swim out prompt with last logged in email - android

I have email edittext field and need to show last successful logged in values of email, if first characters of them are equal.
I know, that successful logged in values I can store in the sharedPreferences. But how can I show it and when user clicks on it, it have to be setted in the login EditText.
How can I do it?

Use an auto complete EditText as login field like in this page http://android.foxykeep.com/dev/how-to-add-autocompletion-to-an-edittext

Related

show name instead of email in auto complete list in android login activity

I have an android login activity, and save user name after first login.
In next login, I want to show user name in auto complete list instead of email. For example, when I type my email, after typing 2-3 letters, I want to see my name in auto complete list to select.
email1 --> show name1
email2 --> show name2
use this in your EditText
android:inputType="textPersonName"

Registered user check for lowercase or uppercase

I want to know how to check the existing users for either upper or lowercase when a new user is signing up. At present for example the followig two users can be registered
tom and Tom, both of these are considered as two separate users, so if this happens I want to sound off to the user that the username already exists. Where in code exactly can I do this?
You can create a textwatcher for the edittext where user enters loginname and when focus changes from the edittext get the string in there using getText and pass this to an api which will check the username with db to check for similarity and will return a status false if similar user exits and you can show a red underline or red hidden badge to side of the edittext on the basis of this result to notify the user that such a username already exists.

android. display the number of asterisks more than the password is

the following logic:
user enters password
login is successful
user logouts
as result no matter what password was entered some stable count of asterisks is displayed (number of the shown asterisks should be different than the password is).
example:
user enters password 123. login is sucessful. then he logouts. as result password is shown like ***** (count of the asterisks is bigger than the password is)
Is that possible?
Maybe I can use ReplacementTransformationMethod, but I cannot find how to use it correctly.

I have an app where I am asking for input a username and password.Right now. It has been changed. Once the user clicks on login in the login menu

I have an app where I am asking for input a username and password.
Right now. It has been changed. Once the user clicks on login in the login menu.
The username should be refilled with a known username and we only ask the user to input password to improve user experience.
Could we use the exist username edit text in my layout file or i have to change to label instead of edit text? I know i can use setText() to populate the username edit text field.
The question is not about saving username (using sharedpreference). what is the best way to
change my code to use ( either edit box or label ).
Please let me know what is the best case to avoid too much change.
Use SharedPreferences to store the usreanme and then everytime you load the layout in your code, check your sharedPreferences and fill the username edittext using setText

autofill password on edittext

i'm a little blocked with this thing. I want to fill one edittext's password when the user type its login. I have the login and password on one database sqlite. I have read on android developers that it can be done with a AutocompleTextView, but i only want to fill the edittext with its password, nothing else. It Anyone knows how can i do this?¿
Cheers
when you create your activity with the EditText get a handle on it and call setText() with the password from your database.

Categories

Resources