slideshare android
DESCRIPTION
TRANSCRIPT
![Page 1: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/1.jpg)
Invasion of The Androids!
Deepak GoyaleZdia Inc
30 March 20119
![Page 2: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/2.jpg)
Schedule.
• Overview (10 min)• Architecture (20)• Developing application using Eclipse.(30 min)• Other tools (how to access your phone, 5 min)• How to publish app (5 min)• Google app inventor (10 min).• QA (10 min)
![Page 3: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/3.jpg)
What is Android?
Android is a software stack for mobile devices that includes an operating system, middleware and key applications
![Page 4: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/4.jpg)
>150,000 Applications
![Page 5: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/5.jpg)
History
2005 Google buys Android, Inc.Work on Dalvik starts
2007 OHA AnnouncedEarly SDK
2008 G1 AnnouncedSDK 1.0 Released
2009 G2 ReleasedCupcake, Donut, Eclair
Andy Rubin
August 2003, Palo
Alto
2010Froyo (USB/ Wifi tethering)
Ginger Bird (NFC, VOIP)
![Page 6: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/6.jpg)
Android 3.0 Honeycomb(Android for Tablets)
• New UI framework for creating great tablet apps
New Developer Features
• Android 3.0 is now available for the Android SDK.
• High-performance 2D and 3D graphics
• Support for multicore processor architectures
• Rich multimedia and connectivity• Enhancements for enterprise• Compatibility with existing apps
What’s new for Android?
In-app Billing Launched on Android Market
![Page 7: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/7.jpg)
Java Android
![Page 8: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/8.jpg)
Android applicationsJava based Application
Native App (Android Native Development Kit (NDK)
Browser based (HTML,JS,CSS)
![Page 9: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/9.jpg)
Schedule.
• Overview (10 min)• Architecture (20)• Developing application using Eclipse.(30 min)• Other tools (how to access your phone, 5 min)• How to publish app (5 min)• Google app inventor (10 min).• QA (10 min)
![Page 10: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/10.jpg)
System Architecture
![Page 11: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/11.jpg)
Linux Kernel System Architecture
![Page 12: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/12.jpg)
LibrarySystem Architecture
![Page 13: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/13.jpg)
Fishing village of Eyjafjörður Iceland
Zygote
http://developer.android.com/videos/index.html#v=ptjedOZEXPM
![Page 14: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/14.jpg)
![Page 15: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/15.jpg)
All Java
![Page 16: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/16.jpg)
What makes and Android application
• Activities.• Services• Content Provider• Intent• Broadcast Receivers• Notifications
![Page 17: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/17.jpg)
Activities Services
![Page 18: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/18.jpg)
Intent and Broadcast Receivers
Intent/ Broadcast receivers
intent
![Page 19: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/19.jpg)
Content Providers
• Only way to share the data between applications.
• Built-in Content providers for contact, media.
• Write your own CP• Or used the existing one
with permission.
![Page 20: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/20.jpg)
Notifications
![Page 21: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/21.jpg)
Schedule.
• Overview (10 min)• Architecture (20)• Developing application using Eclipse.(30 min)• Other tools (how to access your phone, 5 min)• How to publish app (5 min)• Google app inventor (10 min).• QA (10 min)
![Page 22: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/22.jpg)
Setup your environment
• XP, Mac, Linux• JDK 5,6• The Android SDKhttp://developer.android.com/sdk/index.html• Eclipse (Helios)http://developer.android.com/sdk/eclipse-adt.html
![Page 23: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/23.jpg)
Create New Project
![Page 24: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/24.jpg)
![Page 25: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/25.jpg)
The Manifest File <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.marakana" android:versionCode="1" android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".HelloAndroid" android:label="@string/
app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
</application> <uses-sdk
android:minSdkVersion="5" /> </manifest>
![Page 26: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/26.jpg)
The Layout Resource (main.xml)
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" >
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" />
</LinearLayout>
![Page 27: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/27.jpg)
The Java File
package com.ezdia.jugdemo
import android.app.Activity; import android.os.Bundle;
public class HelloAndroid extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); setContentView(R.layout.main);
}}
![Page 28: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/28.jpg)
R.javapackage com.jugdemo;
public final class R { public static final class attr { } public static final class drawable { public static final int icon=0x7f020000; } public static final class id { public static final int textview=0x7f050000; } public static final class layout { public static final int main=0x7f030000; } public static final class string { public static final int app_name=0x7f040001; public static final int hello=0x7f040000; }}
![Page 29: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/29.jpg)
Running on Emulator
![Page 30: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/30.jpg)
Schedule.
• Overview (10 min)• Architecture (20)• Developing application using Eclipse.(30 min)• Other tools (how to access your phone, 5 min)• How to publish app (5 min)• QA (10 min)
![Page 31: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/31.jpg)
• Adb shell• Logcat/Console• Screen capture
• File system (push and pull)• Heap /Thread monitoring• On device debugging
DDMS
![Page 32: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/32.jpg)
How to publish an app?Before you consider your application ready for release :• Test your application extensively on an actual device• Consider adding an End User License Agreement in your application• Specify an icon and label in the application's manifest• Turn off logging and debugging and clean up data/filesBefore you do the final compile of your application:• Version your application• Obtain a suitable cryptographic key• Register for a Maps API Key, if your application is using MapView elements• Compile your application• Sign your application• Test your compiled application• Upload your .apk file on http://market.android.com/publish
![Page 33: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/33.jpg)
Android resources
Guide, Sample and Videos• http://developer.android.com• http://android-developers.blogspot.com• http://developer.android.com/videos/index.html#v=ptje
dOZEXPM
• http://code.google.com/p/apps-for-android/Android Course:• http://sites.google.com/site/androidcoursearchive/hom
eAndroid Source code• http://source.android.com
•
•
•
![Page 34: Slideshare android](https://reader036.vdocuments.mx/reader036/viewer/2022062615/5484cf42b47959fb0c8b4cf4/html5/thumbnails/34.jpg)
Thank you.
Ask your question:http://www.ezdia.com/Android-expert+Houston+deepak.goyal-s2308.do#0
Please join Linked group http://www.linkedin.com/groups/Android-developers-user-3628269?mostPopular=&gid=3628269