android framework
DESCRIPTION
Slides by Aaron Chan and Jerry LimTRANSCRIPT
![Page 1: Android Framework](https://reader036.vdocuments.site/reader036/viewer/2022062704/5558019ad8b42ae31c8b4eca/html5/thumbnails/1.jpg)
3rd CodeAndroid Meetup – Understanding Android Basics and Development
Google, Temasek Tower, 8 Shenton Way25th May 20092 pm
![Page 2: Android Framework](https://reader036.vdocuments.site/reader036/viewer/2022062704/5558019ad8b42ae31c8b4eca/html5/thumbnails/2.jpg)
CodeAndroid.org
• Android Developer/User Group
• Grassroots effort by developers
• Promote Android development around this region
![Page 3: Android Framework](https://reader036.vdocuments.site/reader036/viewer/2022062704/5558019ad8b42ae31c8b4eca/html5/thumbnails/3.jpg)
CodeAndroid.org
Special thanks to
Google Singapore for the space and keeping us well replenished!
HTC Singapore for the goodie bags! (Given out at end of session Q&A)
![Page 4: Android Framework](https://reader036.vdocuments.site/reader036/viewer/2022062704/5558019ad8b42ae31c8b4eca/html5/thumbnails/4.jpg)
Today’s Agenda
1. Android Frame"Works" – What's the importance and how to use them? - by Jerry Lim and Aaron Chan
2. Intents, Intent Filters, Broadcast Receivers- by Muh Hon Cheng
3. Test Driven Development on Android, Part 1 - Building Blocks of TDD - by Wade Mealing
4. Bluetooth-enabled apps using NDK 1.0 - for non-rooted phones - by Stephan February
5. Quiz (and goodie bag time!)
6. Network and chitchat
7. Home sweet home
![Page 5: Android Framework](https://reader036.vdocuments.site/reader036/viewer/2022062704/5558019ad8b42ae31c8b4eca/html5/thumbnails/5.jpg)
Android Frame"Works" – What's the importance and how to use them?
- by Jerry Lim (SBS Next Bus) and Aaron Chan (MobileSorcery)
![Page 6: Android Framework](https://reader036.vdocuments.site/reader036/viewer/2022062704/5558019ad8b42ae31c8b4eca/html5/thumbnails/6.jpg)
Android System Architecture
Application Layer
• Highest Layer in the Architecture
• Built-in standard applications-Phone Dialer-Email-Contacts-Web Browser-Android Market
![Page 7: Android Framework](https://reader036.vdocuments.site/reader036/viewer/2022062704/5558019ad8b42ae31c8b4eca/html5/thumbnails/7.jpg)
Application Framework
The most important part of the framework are as follows:
• Activity Manager
• Resource Manager
• Location Manager
• Notification Manager
![Page 8: Android Framework](https://reader036.vdocuments.site/reader036/viewer/2022062704/5558019ad8b42ae31c8b4eca/html5/thumbnails/8.jpg)
Process!=Application
Lifecycle of the rich and famous
• Each Activity has it own Lifecycle
• Application is one or more Activities
• Activity lifecycle is not tied to process
• Application can be “Alive” even when process has been killed
![Page 9: Android Framework](https://reader036.vdocuments.site/reader036/viewer/2022062704/5558019ad8b42ae31c8b4eca/html5/thumbnails/9.jpg)
Life Cycle in an Android Activity
![Page 10: Android Framework](https://reader036.vdocuments.site/reader036/viewer/2022062704/5558019ad8b42ae31c8b4eca/html5/thumbnails/10.jpg)
Life Cycle in an Android Activity
@override these methods in your Activity class, and Android will call them at the appropriate time
• onCreate(Bundle): This is called when the 1st Activity Startsup
• onStart(): This indicates the activity is about to display to the user
• onResume(): This is called when the activity can start interacting with the user
![Page 11: Android Framework](https://reader036.vdocuments.site/reader036/viewer/2022062704/5558019ad8b42ae31c8b4eca/html5/thumbnails/11.jpg)
Life Cycle in an Android Activity
• onPause(): This runs when and activity about to go to the background
• onStop(): This is called when the activity is no longer visible to the user
• onDestroy(): This is call right before your activity is destroyed, if memory is tight onDestroy may never be called (The system will may terminate you process)
![Page 12: Android Framework](https://reader036.vdocuments.site/reader036/viewer/2022062704/5558019ad8b42ae31c8b4eca/html5/thumbnails/12.jpg)
![Page 13: Android Framework](https://reader036.vdocuments.site/reader036/viewer/2022062704/5558019ad8b42ae31c8b4eca/html5/thumbnails/13.jpg)
Join Us!• Website: http://www.codeandroid.org/
• Facebook: Google Android Developer/User Group Singapore
• Google Groups: http://groups.google.com/group/WeCodeAndroid
• IRC community: #codeandroid on irc.freenode.net (server)
• Twitter: http://www.twitter.com/codeandroid