android basics
DESCRIPTION
Basics of Android. For the session given at home!!TRANSCRIPT
![Page 1: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/1.jpg)
Fanzy.in
![Page 3: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/3.jpg)
Why Android?
Fanzy.in
![Page 4: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/4.jpg)
Why Android?
●Fastest Growing mobile OS.●1.5 billion apps & games downloaded every month.
●1 million new Android devices every day.
Fanzy.in
![Page 5: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/5.jpg)
Why Android?
●70% market share world wide.
Fanzy.in
![Page 6: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/6.jpg)
Fanzy.in
![Page 7: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/7.jpg)
Fanzy.in
Android app Building Blocks
![Page 8: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/8.jpg)
ActivitiesServices
4 App Components
Content Providers
BroadCast ReceiversFanzy.in
![Page 9: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/9.jpg)
Fanzy.in
The Manifest File
Intents
Views
![Page 10: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/10.jpg)
Fanzy.in
Activities
● An activity represents a single screen with a UI.
● App => Multiple activities.
● 1 Activity is declared main.
![Page 11: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/11.jpg)
Activity Lifecycle
Fanzy.in
![Page 12: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/12.jpg)
Activity
Fanzy.in
![Page 13: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/13.jpg)
Views
Fanzy.in
● Basic Building blocks of UI.
● A View responsible for drawing & event handling.
● Organized as Trees
● XML in resources.
![Page 14: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/14.jpg)
Fanzy.in
Action Bar
Tabs
List View
Text View
Image View
Image Button
![Page 15: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/15.jpg)
Intents
● Asynchronous message.● Move from One activity to another.● Launch Activities, Services, Send
BroadCasts.● Communicate between
Applications.
Fanzy.in
![Page 16: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/16.jpg)
Intents
Fanzy.in
![Page 17: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/17.jpg)
Intents
Fanzy.in
![Page 18: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/18.jpg)
Services● Long running operations in the
background.● No User Interface.● Network Transactions, Music, file
Upload etc.
Fanzy.in
![Page 19: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/19.jpg)
Fanzy.in
![Page 20: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/20.jpg)
Content Providers
● Manages a shared set of app data.● Standard interface for Storing &
retrieving data.● Data can be stored in file system,
SQLite database, web etc.● Contacts, Calendar etc.,
Fanzy.in
![Page 21: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/21.jpg)
Broadcast receivers
● Component that responds to system-wide broadcast announcements
● Battery Low.● Location Change.● Call received etc.● Apps can also initiate broacasts.
Fanzy.in
![Page 22: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/22.jpg)
AndroidManifest file
● One file to rule them all.● Declare all your components.● User permissions.● Hardware & software features.
And more.● It is an XML file.
Fanzy.in
![Page 23: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/23.jpg)
Notifications
Fanzy.in
● Notification Area.● Notification
Drawer.● Example:
Whatsapp message, Alarm
![Page 24: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/24.jpg)
Fanzy.in
Dev Environment:Eclipse
EmulatorUI Editor
![Page 25: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/25.jpg)
Other important concepts
● Fragments● Resources
Fanzy.in
![Page 26: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/26.jpg)
APK (exe file for Android)
● Android Application Package file● Signed or Unsigned.● Progaurd for obfuscation.
Fanzy.in
![Page 27: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/27.jpg)
Fanzy.in
More things:
● Debugging● Connecting your phone.● Uploading to Google play.●
![Page 28: Android Basics](https://reader035.vdocuments.net/reader035/viewer/2022081401/55878fc3d8b42a405d8b46e5/html5/thumbnails/28.jpg)
Fanzy.in