Está en la página 1de 24

Android Application Development

-Saketkumar Srivastav
About Me
• Application Engineer 2, ORACLE India PVT LTD

• Member of BAUG – Bangalore Android User Group


http://www.meetup.com/blrdroid/

• Follow Me @SaketSrivastav

• Blog: http://saketsrivastav.blogspot.com
OR
http://saketsrivastav.wordpress.com
Overview
• Open Handset Alliance
• What is Android?
• DNA of Android
• Development Tools
• Hello World!!!
• Android Building Blocks
• Life Cycle Of An Android Application
• Demo App – Flash Light
• Application Packaging
• References
Open Handset Alliance
Open source Project of the Open Handset Alliance (OHA)
- More than 30 technology companies
Latest Announcement From
OHA
What is Android?

“Android is a software stack for mobile devices


that includes an operating system, middleware
and key applications”
What's the BIG Deal?
• Truly open and FREE development platform.
• All development tools are freely available.
• Built in services out of the box.
• SQLite Database
• Automatic management of application lifecycle.
• Portability across current and future hardware.
DNA Of Android
Installing Development Tools
• Java
• Eclipse
• Android SDK
• ADT Plugin for Eclipse
Contd..

Installation

Installation Document
Hello World Example!!!
Android Building Blocks
• Activity
• Intent
• Service
• Content Provider
Activity
• Describes a single screen of the application

• Activities are pushed on the history stack using an Intent.

• Uses callbacks to trigger events during state changes.


Intent

• It describes the intention of the user.


• It is used to start an Activity.
Service

• It runs in the background


• No User Interface
Content Providers
• Set of data wrapped in a custom API
• Allow sharing of data between applications
• Processes register themselves as a Content Provider.
• Google shares contacts, address, phone, etc. can be accessed
by applications.
Ex: Google shares Contact Information by ContactsContract
API(Level 8)
Lifecycle Of An Activity
Demo App – Simple Flash
Light
Application Packaging

1. Compile the application


- Export from Eclipse as an APK file
2. Android Tools -> Export signed Application Package
3. Sign your application with a private key.
More Info: http://bit.ly/and_app_sign
NOTE: You can distribute your .apk file and charge
any way you wish!

If you wish to use the Market


URL: http://www.android.com/market
1. Signup on the market
http://market.android.com/publish/signup
2. Pay $25 registration fee.
3. 80% for you, 20% for the carrier (T-Mobile)
Is Android Truly Open?

Thoughts?
References
http://developer.android.com
http://code.google.com/android/
http://android-developers.blogspot.com
http://code.google.com/p/apps-for-android/
http://sites.google.com/site/io/
http://www.openhandsetalliance.com/
http://anddev.org
http://androidpeople.com
Q&A?
BYE

Thank You

También podría gustarte