In following keypad:

we can select value by pressing buttons (e.g View button1.setOnClickListener(..)), all i want to know is how can i handle keys(keys 0 to 9, enter_key, clear_key) from the phone keypad (e.g. when running on device other then tablet).
Please give a quick refference. any online tutorial will be highly helpfull.
regards,
you can go for onKeyDown which takes keycode and KeyEvent as arguments and KeyEvent class contains all the numeric codes:
Like this you can handle numeric key press/.Hope it wil help you. 🙂