Android Programming Tutorials

(Romina) #1
Menus and Messages

/>

</TableRow>

Then, we need to modify the LunchList activity itself, by:



  1. Adding another data member for the notes EditText widget defined


above



  1. Find our notes EditText widget as part of onCreate(), like we do with


other EditText widgets



  1. Save our notes to our restaurant in onSave

  2. Restore our notes to the EditText in onListClick


At this point, you can recompile and reinstall the application to see your


notes field in action:


Figure 15. The notes field in the details form

59
Free download pdf