I read a lot in this forum, but found nothing that really satisfies me.
So I need your help.
I have an activity with two edit text fields. In the first the user should input binary (only 0 and 1!!!) and in the other one is the value of the first converted into decimal. How do I exactly accomplish an edit box where the user can only input 0 and 1. Ok, backspace and delete, too.
Is there anybody who can help me with this? Thanks.
Yes, but's not best practice I think.
When you got a lot of 0's and 1's and then input one 5 in between them I have to use the replace function for all other types of characters?!?
How would you do it?
Edit Text:
000010100100101 and then insert: a 5 ->0000101050100101
Replace the 5 with ""? How for all other characters? Even "a","b","/",... whatever
How would you do this? by looping through the whole string, character by character? B4A is very good, but I think an keypress event for views would be great. :sign0013: