Slideshare android

34
nvasion of The Androids Deepak Goyal eZdia Inc 0 March 20119

description

 

Transcript of Slideshare android

Page 1: Slideshare android

Invasion of The Androids!

Deepak GoyaleZdia Inc

30 March 20119

Page 2: Slideshare android

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

What is Android?

Android is a software stack for mobile devices that includes an operating system, middleware and key applications

Page 4: Slideshare android

>150,000 Applications

Page 5: Slideshare android

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 7: Slideshare android

Java Android

Page 8: Slideshare android

Android applicationsJava based Application

Native App (Android Native Development Kit (NDK)

Browser based (HTML,JS,CSS)

Page 9: Slideshare android

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

System Architecture

Page 11: Slideshare android

Linux Kernel System Architecture

Page 12: Slideshare android

LibrarySystem Architecture

Page 13: Slideshare android

Fishing village of Eyjafjörður Iceland

Zygote

http://developer.android.com/videos/index.html#v=ptjedOZEXPM

Page 14: Slideshare android
Page 15: Slideshare android

All Java

Page 16: Slideshare android

What makes and Android application

• Activities.• Services• Content Provider• Intent• Broadcast Receivers• Notifications

Page 17: Slideshare android

Activities Services

Page 18: Slideshare android

Intent and Broadcast Receivers

Intent/ Broadcast receivers

intent

Page 19: Slideshare android

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

Notifications

Page 21: Slideshare android

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

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

Create New Project

Page 24: Slideshare android
Page 25: Slideshare android

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

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

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

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

Running on Emulator

Page 30: Slideshare android

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

• Adb shell• Logcat/Console• Screen capture

• File system (push and pull)• Heap /Thread monitoring• On device debugging

DDMS

Page 32: Slideshare android

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

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

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