In Android if I have an edit text and the user entered 123456789012, how could I get the program to insert a dash every 4th character. ie: 1234-5678-9012?
I guess you need to say something along the lines of:-
a=Characters 1~4, b=Characters 5~8, c=Characters 9-12
, Result = a + "-" + b + "-" + c. But I am unsure of how that would look in Android.
Many thanks for any help.