1. Add a Toast to the Password Dialog Button click handler. Make it display the message "Clicked!" when the Button is clicked.

2. Modify each EditText control to save its contents when the user presses the up key (KEYCODE_DPAD_UP) or down key (KEYCODE_DPAD_DOWN) on the directional keypad in addition to the Enter key (KEYCODE_ENTER).

3. Implement a Clear button that deletes all game preferences, using the clear() method of SharedPreferences.Editor. Don't forget to call the commit() method.

This page intentionally left blank

Was this article helpful?

0 0

Post a comment