məcid cəbrayılov - android proqramlaşdırmaya giriş
TRANSCRIPT
Introduction to Android development
Mecid Cabrayilov
Agenda
• Android development background
• Android application on Linux kernel
• Android application components
• Resourceso Drawableo UI layouts
Background
• Java and OOP
• Android SDK tools
• Eclipse IDE and ADT plugin
• APK fileo Android manifesto Dex fileo Resources
Android app on Linux kernel
• User per Application
• VM per Application
• Linux process per Application
• Sandbox per Application
Application fundamentals
• Activity
• Service
• Content Provider
• Broadcast Receiver
• Intent
Activity
• Correspond to one screen in a UI
Activity
• One Activity can start second Activity
Intent
• Component name
• Action
• Data
• Extras
Service
• Without UI
• Long time taskso Music player
o Sync with remote server
o Gtalk connection
Content provider
• Share with other applications (e.g. Contacts, SMS)
• Manage threads
• Manage transactions
Broadcast Receiver
• Component designed to respond to broadcast Intents
• Application can invent and broadcast their own intents as well
• Think of them as a way to respond to external notifications or alarms
Resources
• ID for every resource
• UI layouts in XML
Mecid Cabrayilov
Developer @ [email protected]://twitter.com/mecid
http://mecid.info/http://droidstyle.mecid.info/