android training in mohali

Post on 22-Feb-2017

23 Views

Category:

Education

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

E2MATRIXAndroid Training Mohali 6 Weeks/Months Training in

AndroidE2MatrixS.C.F 66,Top Floor – Punjab (INDIA). Web: www.e2matrix.com

Email: mohali.support@e2matrix.comContact : +91 9056501501 : + 91 9915525860

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

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)

Java Android

Android applicationsJava based Application

Browser based (HTML,JS,CSS)

Native App (Android Native Development Kit (NDK)

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=ptjedOZEXPM • http://code.google.com/p/apps-for-android/Android Course:• http://sites.google.com/site/androidcoursearchive/homeAndroid Source code• http://source.android.com

top related