Professional Documents
Culture Documents
Department of Software Engineering, Faculty of Information Technology, University of Science Ho Chi Minh City, Viet Nam
.
Android Course
Pre-requirements
Android Course
Notepad Exercise 1
http://developer.android.com/resources/tutorials/notepad/notepa
complete this tutorial, you will have practiced
notepad_list.xml,
about:
Creating
xml-based layout files such as notes_row.xml. Modifying string.xml resource. Creating options menu by using code. Handling options menu selections. Creating and loading resources for a ListView. Filling data into a ListView.
Android Course
Notepad Exercise 2
http://developer.android.com/resources/tutorials/notepad/notepa
d-ex2.html
After
about:
Creating context menu by using code. Handling context menu selections. Using Intent object to start an activity for a result. Starting an activity for passing values by putting values into Intent
object. Using layout_weight attribute. Loading views from xml-based layout file by using findViewById() method. Using Intent object to read passed values. Using event listeners. Declaring a new activity in AndroidManifest.xml file.
.
Android Course
Notepad Exercise 3
http://developer.android.com/resources/tutorials/notepad/notepa
complete this tutorial, you will have practiced
onPause(),
about:
Managing
Android Course
Do the tutorial:
http://developer.android.com/resources/tutorials/notepad/notepa
d-extra-credit.html
Practiced about using DMMS tools to emulate voice calls or SMS messages. Learned about the time which onCreate(), onPause(), onResume(), or onSaveInstancesState() method is called.
Android Course
More requirements
Try
creating menus by loading from xml resources (not using code to create menu items). Try adding icons (images) for menu items. Try using event listener technique for menu item selections (not using onOptionsItemSelected or onContextItemSelected function)
Android Course
Questions or Discussions
Why
do we not use onRestoreInstancesState() to manage the Activity lifecycle in this Notepad application? What is the difference between using event handlers (onOptionsItemSelected, onContextItemSelected) and using event listeners (setOnMenuItemClickListener)?