tailieunhanh - Lesson Mobile programming Chapter5: Android programming (Advanced) - TS. Dương Thăng Long

Lesson Mobile programming Chapter5: Android programming (Advanced) present about details of activities; dialogs; adapter for list grid view; sharedreferences; sqlite; network internet (http); maps; sms & telephony; multimedia; notification,. Invite you to participate to master the details. | 10/31/2014 1 • • • • • • • • • Details of activities, dialogs Adapter for list/grid view SharedReferences SQLite Network/Internet (Http) Maps, Sms & Telephony Multimedia, Notification, 10/31/2014 2 • Details of activity – we can start an activity and back to – running activities are store in a stack – we can finish current activity & start another 10/31/2014 3 • Details of activity application context – Step1) Create an Intent object class name of activity Intent =new Intent(this, ); – Step2) Create Bundle (if needed send data) Use “putExtra” instead of Bundle getExtra Bundle =new Bundle(); .put (key, value); – Step3) Start activity with the Intent startActivity( , ); Declare the activity in for running putInt, putString, for sending data to new Activity call from an activity 10/31/2014 4 • Options menu – Step1) Design a menu of items – Step2) Set the menu to menu-options implement the “onCreateOptionsMenu” .