This time I am in a dilemma, I am creating an application that transforms a sentence or word given to its equivalent in exadecimal, this with the purpose of generating a bsc frame and printing it so that the user can visualize it, but when moving on the project I came across the problem that in android studio I can use the keyboard in numerical type, but I still accept numbers other than 1 and 0, I need that you can only enter 1 and 0 this in order to enter the header , error detection and the other parts that make up the bsc frame all must be in binary, and I do not know how to deactivate the numbers on the keyboard other than 1 and 0, if someone could give me a solution, use some condition a try catch or some way to deactivate the numbers would be appreciated.
I leave the link to GitHub of my project in android studio for those who like to help me.
thanks.