I just tried to add a text box in Android, and it worked fine in the emulator. By default, it first calls up the numeric keypad, but you can easily switch to characters. So try using a text box with numbers.
<EditText android:id="@+id/editText1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:inputType="number" />
EGHDK
source share