android development
DESCRIPTION
TRANSCRIPT
![Page 1: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/1.jpg)
Ahmed AliMobileSq.net Founder
@ahmed_aly
![Page 2: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/2.jpg)
MOBILE OPERATING SYSTEMS
![Page 3: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/3.jpg)
![Page 4: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/4.jpg)
ANDROID IS NO.1
![Page 5: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/5.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/6.jpg)
![Page 7: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/7.jpg)
![Page 8: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/8.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/9.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/10.jpg)
SYSTEM-ARCHITECTURE
![Page 11: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/11.jpg)
WHAT IS THAT!!!
![Page 12: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/12.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/13.jpg)
SOME STATISTICS
![Page 14: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/14.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/15.jpg)
CHALLENGES OF SMARTPHONE PROGRAMMING
Screens Keyboards
Pointing toolsCPU speed and Memory
![Page 16: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/16.jpg)
WHAT YOU CAN USE IN YOUR APP?
Storage Network
GPS Phone Services
MultiMedia
![Page 17: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/17.jpg)
DEVELOPMENT TOOLS
- Java Language - Eclipse IDE
- ADT Plug-in For Eclipse - Android SDK
![Page 18: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/18.jpg)
ANDROID SDK
Consist of the following parts : - Android Emulator
- Command line tools - Documentations.
- example Applications.
![Page 19: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/19.jpg)
ANDROID EMULATOR
![Page 20: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/20.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/21.jpg)
PROJECT CONTENT
![Page 22: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/22.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/23.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/24.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/25.jpg)
MANIFEST FILE (2/6)
The <application>
<application android:icon="@drawable/icon" android:label="@string/app_name"
android:debuggable="true>"
/<application>
![Page 26: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/26.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/27.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/28.jpg)
MANIFEST FILE (5/6)
The <uses-permission>
<uses-permission android:name="android.permission.INTERNET">/
![Page 29: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/29.jpg)
MANIFEST FILE (6/6)
The <uses-sdk>
<uses-sdk android:minSdkVersion=“3“ android:targetSdkVersion=“9>/ ”
![Page 30: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/30.jpg)
ACTIVITY LIFE CYCLE
The Activity can be in one of three states: -Running
-Paused -Stopped
-Dead
![Page 31: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/31.jpg)
ACTIVITY LIFE CYCLE
![Page 32: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/32.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/33.jpg)
INPUT HANDLING (2/4)
Processing Single Touch Events: (Cont.)
MotionEvent.getX)(MotionEvent.getY)(MotionEvent.getAcation)(
MotionEvent.ActionDownMotionEvent.ActionMoveMotionEvent.ActionCancleMotionEvent.ActionUp
![Page 34: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/34.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/35.jpg)
INPUT HANDLING (4/4)
Processing Key Events:
KeyEvent.getAction)(KeyEvent.ActionDownKeyEvent.ActionUp
KeyEvent.getUnicodeChar)(
![Page 36: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/36.jpg)
CODING!!!
![Page 37: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/37.jpg)
ANDROID MARKET
![Page 38: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/38.jpg)
ANDROID MARKET
Market Is Divided into Two Parts 1 – Phone Market
2 – Web Market
![Page 39: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/39.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/40.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/41.jpg)
`
![Page 42: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/42.jpg)
@ahmed_aly
www.MobileSq.net
![Page 43: Android development](https://reader035.vdocument.in/reader035/viewer/2022062617/54c8de5f4a7959237f8b456d/html5/thumbnails/43.jpg)
MY CONTACTS
LinkedIn : :// . . / / 1http eg linkedin com in ahmedali
Facebook : Facebook.com/Ahmed.Ali.IbrahimGmail : [email protected] : [email protected]