android basics

28
Fanzy.in

Upload: gauthamns

Post on 22-Jun-2015

195 views

Category:

Technology


2 download

DESCRIPTION

Basics of Android. For the session given at home!!

TRANSCRIPT

Page 1: Android Basics

Fanzy.in

Page 2: Android Basics

About me:

Gautham NSFounder of Fanzy.in Fantasy

Cricket@gauthamns

[email protected]

Fanzy.in

Page 3: Android Basics

Why Android?

Fanzy.in

Page 4: Android Basics

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

Why Android?

●70% market share world wide.

Fanzy.in

Page 6: Android Basics

Fanzy.in

Page 7: Android Basics

Fanzy.in

Android app Building Blocks

Page 8: Android Basics

ActivitiesServices

4 App Components

Content Providers

BroadCast ReceiversFanzy.in

Page 9: Android Basics

Fanzy.in

The Manifest File

Intents

Views

Page 10: Android Basics

Fanzy.in

Activities

● An activity represents a single screen with a UI.

● App => Multiple activities.

● 1 Activity is declared main.

Page 11: Android Basics

Activity Lifecycle

Fanzy.in

Page 12: Android Basics

Activity

Fanzy.in

Page 13: Android Basics

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

Fanzy.in

Action Bar

Tabs

List View

Text View

Image View

Image Button

Page 15: Android Basics

Intents

● Asynchronous message.● Move from One activity to another.● Launch Activities, Services, Send

BroadCasts.● Communicate between

Applications.

Fanzy.in

Page 16: Android Basics

Intents

Fanzy.in

Page 17: Android Basics

Intents

Fanzy.in

Page 18: Android Basics

Services● Long running operations in the

background.● No User Interface.● Network Transactions, Music, file

Upload etc.

Fanzy.in

Page 19: Android Basics

Fanzy.in

Page 20: Android Basics

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

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

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

Notifications

Fanzy.in

● Notification Area.● Notification

Drawer.● Example:

Whatsapp message, Alarm

Page 24: Android Basics

Fanzy.in

Dev Environment:Eclipse

EmulatorUI Editor

Page 25: Android Basics

Other important concepts

● Fragments● Resources

Fanzy.in

Page 26: Android Basics

APK (exe file for Android)

● Android Application Package file● Signed or Unsigned.● Progaurd for obfuscation.

Fanzy.in

Page 27: Android Basics

Fanzy.in

More things:

● Debugging● Connecting your phone.● Uploading to Google play.●

Page 28: Android Basics

Fanzy.in