Android Question Showing the last character of a password in an EditText

ykucuk

Well-Known Member
Licensed User
Longtime User
Hello,

is there way show the last character of a password in an EditText ?
 

ThRuST

Well-Known Member
Licensed User
Longtime User
is there way show the last character of a password in an EditText ?

Once way is to use two EditText boxes and keep one as hidden. Then you parse the string lenght to get the char which is usually the substring parameter.
This might get complicated so my advice is that you use pen and paper to figure it out based on what you want it to look like but this is one alternative I suggest.
I also want to add that security is security and by that it should so be treated. A simpler solution would be to put a headline on top *What was your favourite pets name* or something like most services use. The simple way is usually, the best way . Good luck :)
 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
This will get you started
B4X:
Dim s, newstr As String
    s = "012345"
    newstr = s.SubString2(5,6)
    Log(newstr)
 
Upvote 0
Top