Top Banner
Ahmed Ali MobileSq.net Founder @ahmed_aly
43
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Android development

Ahmed AliMobileSq.net Founder

@ahmed_aly

Page 2: Android development

MOBILE OPERATING SYSTEMS

Page 3: Android development
Page 4: Android development

ANDROID IS NO.1

Page 5: Android development

AGENDA

1 – What is “ Android? “ 2 – Android History

3 – Android Versions 4 – Why Android!!?

5 – Development Tools6 – Hello World

7 – Project content8 - Event Handling 9 – Android Market

Page 6: Android development
Page 7: Android development
Page 8: Android development

WHAT IS ANDROID?

Android is an open-source software stack for mobile devices that includes an operating system,

middleware and key applications. And it is based

upon a modified version of the Linux kernel

Page 9: Android development

ANDROID HISTORY

Google Inc. purchased the initial developer of the software in 2005.

from Android Inc. which was founded in Palo Alto, California, United States in October, 2003 by Andy Rubin, Rich

Miner .

Page 10: Android development

SYSTEM-ARCHITECTURE

Page 11: Android development

WHAT IS THAT!!!

Page 12: Android development

ANDROID PLATFORM

Android 1.5 CupCake Android 1.6 Donut

Android 2.1 EclairAndroid 2.2 FroyoAndroid 2.3 Gingerbread

Android 3.0 Honeycomb , Tablet OrientedAndroid 4.0 Ice Cream Sandwich

Page 13: Android development

SOME STATISTICS

Page 14: Android development

WHY ANDROID!? 1 – Open Source

2 – based on Linux kernel3 – Flash Player Support

4 – Different Models5 – Reasonable prices

6 – Google Apps7 – Android Apps

Page 15: Android development

CHALLENGES OF SMARTPHONE PROGRAMMING

Screens Keyboards

Pointing toolsCPU speed and Memory

Page 16: Android development

WHAT YOU CAN USE IN YOUR APP?

Storage Network

GPS Phone Services

MultiMedia

Page 17: Android development

DEVELOPMENT TOOLS

- Java Language - Eclipse IDE

- ADT Plug-in For Eclipse - Android SDK

Page 18: Android development

ANDROID SDK

Consist of the following parts : - Android Emulator

- Command line tools - Documentations.

- example Applications.

Page 19: Android development

ANDROID EMULATOR

Page 20: Android development

YOUR FIRST APP “HELLO WORLD”

Install Java JDKInstall EclipseInstall ADT Plug-inDownload Android SDK and install it Now, Create your First AppCoding

Page 21: Android development

PROJECT CONTENT

Page 22: Android development

ANDROID APPLICATION

Activities: user-facing components that present UI to interact with.

Services: processes that work in the background and don’t have a visible background

Content Providers: components make parts of your application data available to other applications

Page 23: Android development

ANDROID APPLICATION

Intents: messages created by the system or application themselves that are then passed on to any interested party.

Broadcast Receivers: These react to specific intents, and might execute an action.

Page 24: Android development

MANIFEST FILE (1/6)

The <manifest>

<manifest xmlns:android="http://schemas.android.com/apk/res/android"

package="com.MobileSq.HelloWorld" android:versionCode="1"

android:versionName="1.0“ android:installLocation=“preferExternal>”

Page 25: Android development

MANIFEST FILE (2/6)

The <application>

<application android:icon="@drawable/icon" android:label="@string/app_name"

android:debuggable="true>"

/<application>

Page 26: Android development

MANIFEST FILE (3/6)

The <activity>

<activity android:name=".HelloWorld" android:label="@string/app_name>"

< intent-filter>

<actionandroid:name="android.intent.action.MAIN>/ "

<categoryandroid:name="android.intent.category.LAUNCHER>/ "

/< intent-filter>/<activity>

Page 27: Android development

MANIFEST FILE (4/6)

The <activity>

<activity android:name=".MrNorm" android:label="@string/app_name“

android:screenOrientation=“portrait” android:configurations=”keyboard|

keyboardHidden|orientation>/”

Page 28: Android development

MANIFEST FILE (5/6)

The <uses-permission>

<uses-permission android:name="android.permission.INTERNET">/

Page 29: Android development

MANIFEST FILE (6/6)

The <uses-sdk>

<uses-sdk android:minSdkVersion=“3“ android:targetSdkVersion=“9>/ ”

Page 30: Android development

ACTIVITY LIFE CYCLE

The Activity can be in one of three states: -Running

-Paused -Stopped

-Dead

Page 31: Android development

ACTIVITY LIFE CYCLE

Page 32: Android development

INPUT HANDLING (1/4)

Processing Single Touch Events:

Touch Events are passed to an OnTouchListener interface implementation that we register with a view.

The OnTouchListener interface has only a single method

Public abstract boolean onTouch(View v, MotionEvent event)

Page 33: Android development

INPUT HANDLING (2/4)

Processing Single Touch Events: (Cont.)

MotionEvent.getX)(MotionEvent.getY)(MotionEvent.getAcation)(

MotionEvent.ActionDownMotionEvent.ActionMoveMotionEvent.ActionCancleMotionEvent.ActionUp

Page 34: Android development

INPUT HANDLING (3/4)

Processing Key Events:

To catch key Events, we implement another listener interface, called OnKeyListenerPublic boolean onKey(View v, int keyCode, KeyEvent

event)

Page 35: Android development

INPUT HANDLING (4/4)

Processing Key Events:

KeyEvent.getAction)(KeyEvent.ActionDownKeyEvent.ActionUp

KeyEvent.getUnicodeChar)(

Page 36: Android development

CODING!!!

Page 37: Android development

ANDROID MARKET

Page 38: Android development

ANDROID MARKET

Market Is Divided into Two Parts 1 – Phone Market

2 – Web Market

Page 39: Android development

ANDROID MARKET

- 25$ Registration Fee for Developer - Developer receive 70% of Each Sale - Remaining amount Goes to carriers

- Google Doesn’t Take any percentage - Website : . . .www market android com

Page 40: Android development

SUMMERY

Google inc. Company

C(core) ,C++ (some third party apps), java (UI) Programmed in

2008 Initial release

Monolithic (modified Linux kernel) Kernel Type

2.3.4 Latest stable release

Open Handset Alliance Developer

Android.com Website

Java Developing language

. . .www Market android com Market

Eclipse – ADT – Android SDK Developing Tools

Page 41: Android development

`

Page 42: Android development

@ahmed_aly

www.MobileSq.net

Page 43: Android development

MY CONTACTS

LinkedIn : :// . . / / 1http eg linkedin com in ahmedali

Facebook : Facebook.com/Ahmed.Ali.IbrahimGmail : [email protected] : [email protected]