məcid cəbrayılov - android proqramlaşdırmaya giriş
TRANSCRIPT
![Page 1: Məcid Cəbrayılov - Android Proqramlaşdırmaya Giriş](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555801f9d8b42a200d8b52b9/html5/thumbnails/1.jpg)
Introduction to Android development
Mecid Cabrayilov
![Page 2: Məcid Cəbrayılov - Android Proqramlaşdırmaya Giriş](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555801f9d8b42a200d8b52b9/html5/thumbnails/2.jpg)
Agenda
• Android development background
• Android application on Linux kernel
• Android application components
• Resourceso Drawableo UI layouts
![Page 3: Məcid Cəbrayılov - Android Proqramlaşdırmaya Giriş](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555801f9d8b42a200d8b52b9/html5/thumbnails/3.jpg)
Background
• Java and OOP
• Android SDK tools
• Eclipse IDE and ADT plugin
• APK fileo Android manifesto Dex fileo Resources
![Page 4: Məcid Cəbrayılov - Android Proqramlaşdırmaya Giriş](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555801f9d8b42a200d8b52b9/html5/thumbnails/4.jpg)
Android app on Linux kernel
• User per Application
• VM per Application
• Linux process per Application
• Sandbox per Application
![Page 5: Məcid Cəbrayılov - Android Proqramlaşdırmaya Giriş](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555801f9d8b42a200d8b52b9/html5/thumbnails/5.jpg)
Application fundamentals
• Activity
• Service
• Content Provider
• Broadcast Receiver
• Intent
![Page 6: Məcid Cəbrayılov - Android Proqramlaşdırmaya Giriş](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555801f9d8b42a200d8b52b9/html5/thumbnails/6.jpg)
Activity
• Correspond to one screen in a UI
![Page 7: Məcid Cəbrayılov - Android Proqramlaşdırmaya Giriş](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555801f9d8b42a200d8b52b9/html5/thumbnails/7.jpg)
Activity
• One Activity can start second Activity
![Page 8: Məcid Cəbrayılov - Android Proqramlaşdırmaya Giriş](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555801f9d8b42a200d8b52b9/html5/thumbnails/8.jpg)
Intent
• Component name
• Action
• Data
• Extras
![Page 9: Məcid Cəbrayılov - Android Proqramlaşdırmaya Giriş](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555801f9d8b42a200d8b52b9/html5/thumbnails/9.jpg)
Service
• Without UI
• Long time taskso Music player
o Sync with remote server
o Gtalk connection
![Page 10: Məcid Cəbrayılov - Android Proqramlaşdırmaya Giriş](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555801f9d8b42a200d8b52b9/html5/thumbnails/10.jpg)
Content provider
• Share with other applications (e.g. Contacts, SMS)
• Manage threads
• Manage transactions
![Page 11: Məcid Cəbrayılov - Android Proqramlaşdırmaya Giriş](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555801f9d8b42a200d8b52b9/html5/thumbnails/11.jpg)
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
![Page 12: Məcid Cəbrayılov - Android Proqramlaşdırmaya Giriş](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555801f9d8b42a200d8b52b9/html5/thumbnails/12.jpg)
Resources
• ID for every resource
• UI layouts in XML
![Page 13: Məcid Cəbrayılov - Android Proqramlaşdırmaya Giriş](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555801f9d8b42a200d8b52b9/html5/thumbnails/13.jpg)
Mecid Cabrayilov
Developer @ [email protected]://twitter.com/mecid
http://mecid.info/http://droidstyle.mecid.info/