840 likes | 1k Views
Getting Started with Android Development. Rohit Ghatol. About Me. Rohit Ghatol Architect @QuickOffice Project Mgr @Synerzip Certified Scrum Master Author “ Beginning PhoneGap ” @Apress Founder TechNext Pune (Pune Developer Community). LinkedIn Profile. Topics. Understanding Android
E N D
Getting Started with Android Development Rohit Ghatol
About Me Rohit Ghatol • Architect @QuickOffice • Project Mgr @Synerzip • Certified Scrum Master • Author “Beginning PhoneGap” @Apress • Founder TechNext Pune (Pune Developer Community) LinkedIn Profile
Topics • Understanding Android • Android Building Blocks • Putting Building Blocks Together • Latest things in Android World • Reference Material
What is Android? • Software stack for mobile devices that includes • an operating system • middleware • key applications • SDK to develop application
Android OS Capabilities • Phone and OS features • 3G/4G,GPS, Accelerometer, Compass, Camera, SQLite, Wifi, Bluetooth, etc • Near Field Communication • Cloud to Device Messaging (C2DM) • Direct Wifi
Android OS Capabilities • Notable Features of Android • All Applications are equal • Reuse of Data • Reuse of Functionality
All Applications are Equal • Replace Home Application • Replace Contacts, Dialer Applications • Replace SMS, Email Applications • Replace Settings Application • OEM Customizations (e.g HTC Sense)
Reuse of Data Default Contact Manager New Contact Manager Replaces What happens to data feed into the default Contact Manager?
Reuse of Data Default Contact Manager New Contact Manager Replaces But Uses Content Provider “Replaces” means by default the new app is launched, but old app still exists
Reuse of Functionality My Coupons Time to learn SMS API and Email API and code them into my application! More code! Heehee New Requirement • Share with Friends using • SMS • Email
Reuse of Functionality Here are two applications who can do it for you? My Coupons SMS Intention: Want to send Email Mail
Reuse of Functionality My Coupons SMS Mail
Reuse of Functionality My Coupons SMS Mail
Android Environment Setup http://developer.android.com/sdk/installing.html
Eclipse Android SDK ADT Android ….. SDK Manager Manages Android 2.2 Emulator Emulator Google API 2.2 AVD Manager ………………. Android 3.2 Android 4.x
Android Application Android Manifest Dex File Resources MyApp.apk Signed by Self Signed Private Key
Android Build Cycle .java .class .dex .apk javac dx apt • AndroidManifest.xml • resources
Dalvik VM Uid 1 Uid 2 Uid 3 Linux Process data data com.xyz.email Dalvik VM Dalvik VM Dalvik VM shared_prefs files UID 1 databases Process Process Process com.abc.skype . . . . . . Linux Kernel UID 2 com.koko.sukudo . . . . . . UID 3
Activity Service Broadcast Receiver Content Resolver Content Provider Intents Building Blocks Other Components Alarm Manager Noti-fication Manager …… Read more - http://developer.android.com/guide/topics/fundamentals.html ......