A Simple Form
Step #4: Run the Application in the Emulator...................................
In your emulator, in the application launcher, you will see an icon for your
LunchList application. Click it to bring up your form:
Figure 6. The first edition of LunchList
Use the directional pad (D-pad) below the [MENU] button to navigate
between the fields and button. Enter some text in the fields and click the
button, to see how those widgets behave. Then, click the BACK button to
return to the application launcher.
Step #5: Create a Model Class..............................................................
Now, we want to add a class to the project that will hold onto individual
restaurants that will appear in the LunchList. Right now, we can only really
work with one restaurant, but that will change in a future tutorial.
So, using your text editor, create a new file named
LunchList/src/apt/tutorial/Restaurant.java with the following contents: