Are you excited enough? If not, you should be; we are half way through and ready to explore some more of the widgets that are commonly used and have a lot of significance in any application. The things to be covered in this chapter are adding a menu, check box, radio button, and preference to the application. We will make use of these widgets and create the DistanceConverter
application .The main objective of this application is to convert distance entered in km/m to mile/foot and yards. The following are the steps that we cover in this chapter to successfully create the DistanceConverter
application:
- Creating a project:
DistanceConverter
- Adding a RadioGroup.RadioButton
- Adding a CheckBox
- Adding a menu
- Defining the Strings
- Defining the Preferences screen
- Hook up
- Binding menu and Preference
- Getting values from Preference
- Running the application