slideshare android
Post on 05-Dec-2014
11.406 Views
Preview:
DESCRIPTION
TRANSCRIPT
Invasion of The Androids!
Deepak GoyaleZdia Inc
30 March 20119
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)
What is Android?
Android is a software stack for mobile devices that includes an operating system, middleware and key applications
>150,000 Applications
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)
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
Java Android
Android applicationsJava based Application
Native App (Android Native Development Kit (NDK)
Browser based (HTML,JS,CSS)
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)
System Architecture
Linux Kernel System Architecture
LibrarySystem Architecture
Fishing village of Eyjafjörður Iceland
Zygote
http://developer.android.com/videos/index.html#v=ptjedOZEXPM
All Java
What makes and Android application
• Activities.• Services• Content Provider• Intent• Broadcast Receivers• Notifications
Activities Services
Intent and Broadcast Receivers
Intent/ Broadcast receivers
intent
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.
Notifications
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)
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
Create New Project
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>
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>
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);
}}
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; }}
Running on Emulator
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)
• Adb shell• Logcat/Console• Screen capture
• File system (push and pull)• Heap /Thread monitoring• On device debugging
DDMS
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
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
•
•
•
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
top related