For a timeout preference I need to ask the user for a number. Is there some kidn of “number control” on android or do I have to use a text input and check if the text given by the user if a number? Thank you very much!
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In the graphical layout view for the textbox you can select
Properties>Input Type>Number
or in the xml view you can add “android:inputType=”number”” to the EditText