Fanzy.in
Jun 22, 2015
Fanzy.in
Why Android?
Fanzy.in
Why Android?
●Fastest Growing mobile OS.●1.5 billion apps & games downloaded every month.
●1 million new Android devices every day.
Fanzy.in
Why Android?
●70% market share world wide.
Fanzy.in
Fanzy.in
Fanzy.in
Android app Building Blocks
ActivitiesServices
4 App Components
Content Providers
BroadCast ReceiversFanzy.in
Fanzy.in
The Manifest File
Intents
Views
Fanzy.in
Activities
● An activity represents a single screen with a UI.
● App => Multiple activities.
● 1 Activity is declared main.
Activity Lifecycle
Fanzy.in
Activity
Fanzy.in
Views
Fanzy.in
● Basic Building blocks of UI.
● A View responsible for drawing & event handling.
● Organized as Trees
● XML in resources.
Fanzy.in
Action Bar
Tabs
List View
Text View
Image View
Image Button
Intents
● Asynchronous message.● Move from One activity to another.● Launch Activities, Services, Send
BroadCasts.● Communicate between
Applications.
Fanzy.in
Intents
Fanzy.in
Intents
Fanzy.in
Services● Long running operations in the
background.● No User Interface.● Network Transactions, Music, file
Upload etc.
Fanzy.in
Fanzy.in
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
Broadcast receivers
● Component that responds to system-wide broadcast announcements
● Battery Low.● Location Change.● Call received etc.● Apps can also initiate broacasts.
Fanzy.in
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
Notifications
Fanzy.in
● Notification Area.● Notification
Drawer.● Example:
Whatsapp message, Alarm
Fanzy.in
Dev Environment:Eclipse
EmulatorUI Editor
Other important concepts
● Fragments● Resources
Fanzy.in
APK (exe file for Android)
● Android Application Package file● Signed or Unsigned.● Progaurd for obfuscation.
Fanzy.in
Fanzy.in
More things:
● Debugging● Connecting your phone.● Uploading to Google play.●
Fanzy.in