Introduction to android
-
Upload
bantyder -
Category
Technology
-
view
395 -
download
0
description
Transcript of Introduction to android
![Page 1: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/1.jpg)
Welcome
![Page 2: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/2.jpg)
INTRODUCTION TO ANDROID
Bantyder BahruMarch 30,2013
![Page 3: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/3.jpg)
• Android at a glance1• Setting up IDE2• Our first android project3• Building block of android
apps 4• Best way to learn
android5
Today’s Overview
![Page 4: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/4.jpg)
Android at glance
![Page 5: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/5.jpg)
•How it was started•Android Versions•How many device ?•Why android as a
developer?
![Page 6: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/6.jpg)
How it was started
• Google Acquires Android Inc. in 2005• Open Handset Alliance formed in 2007• First android SDK released in 2008
![Page 7: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/7.jpg)
Android VersionsTable 1-1. Android versions through Android 2.3Android version API level NicknameAndroid 1.0 1Android 1.1 2Android 1.5 3 CupcakeAndroid 1.6 4 DonutAndroid 2.0,2.01,2.1 5 ,6,7 EclairAndroid 2.2 8 Froyo (frozen yogurt)Android 2.3,2.3.3 9,10 GingerbreadAndroid 3.0 ,3.1,3.2 11,12,13 HoneycombAndroid 4.0,4.03 14,15 Ice cream SandwichAndroid 4.1,4.2 16,17 Jelly Bean
![Page 8: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/8.jpg)
How many devices• people have activated half
a billion Android devices. • Also, 1.3 million new ones
arrive each day.
![Page 9: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/9.jpg)
Why Android as a developer?
• Open source platform• Cost free development• Contains built-in libraries which makes developer's life easy• We can develop and test our app without owning a physical device
![Page 10: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/10.jpg)
Setting up your IDE
![Page 11: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/11.jpg)
• Download Android Bundle
• Use Existing IDE
![Page 12: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/12.jpg)
Download Android Bundle
1.Go to http://developer.android.com/sdk/index.html2.Extract 3.Run Android SDK Manager4.Selet and install Latest SDK
Eclipse + ADT(Android Development Tool) + Android SDK Manager
![Page 13: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/13.jpg)
Use Existing IDE
Download android SDK from http://dl.google.com/android/installer_r21.1-windows.exe
Start Eclipse, then select Help→Install New Software In the Available Software dialog, click Add. In the Add Site dialog that appears, enter a name for the
remote site (for example, “Android Plugin”) in the “Name” field. In the “Location” field, enter this URL:
https://dl-ssl.google.com/android/eclipse/
![Page 14: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/14.jpg)
Use Existing IDE
Click OK. Back in the Available Software view, you should now see “Developer Tools” added
To the list. Select the checkbox next to Developer Tools, which will automatically
Select the nested tools Android DDMS and Android Development Tools. Click Next.
In the resulting Install Details dialog, the Android DDMS and Android Development
Tools features are listed. Click Next to read and accept the license agreement and install any dependencies, then click Finish.
Restart Eclipse.
![Page 15: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/15.jpg)
1. Run Android SDK manager2. Select Latest SDK and install
To Finalize your preparation
Ready to get our hand dirty!!!!!!!
![Page 16: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/16.jpg)
Our first android project.
![Page 17: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/17.jpg)
Android Projects
• Naming• Min SDK• Target SDK • Manifest Files• Resource files• R file• Emulator
![Page 18: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/18.jpg)
BUILDING BLOCK OF ANDROID APPLICATION
![Page 19: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/19.jpg)
HOW ANDROID APPLICATION RUN
![Page 20: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/20.jpg)
Building Blocks
1.Activity2.Intents3.Services4.Broadcast Receiver5.Application Context
![Page 21: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/21.jpg)
Building Blocks
1.Activity2.Intents3.Services4.Broadcast Receiver5.Application Context
![Page 22: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/22.jpg)
Activity• usually a single screen that the user sees on the device at one time• Activity has life cycle
![Page 23: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/23.jpg)
Intents• Intents are messages that are sent
among the major building blocks• Trigger activity to start• Tells service to start , stop or
broadcast• Explicit Intent• Implicit Intent
![Page 24: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/24.jpg)
Code Practice•Declaring Activity• Starting New Activity• Explicit Intent• Implicit Intent
![Page 25: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/25.jpg)
Code Practice (continued)
• Switching between activity•Returning result from
activity• passing data for another
activity using intent
![Page 26: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/26.jpg)
Best Way To Learn
• No more waiting start today
• Ideas • Start Today
![Page 27: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/27.jpg)
Summary
• Configure your IDE• Understand Building Blocks• Activity and Intents
![Page 28: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/28.jpg)
Resources
• ORielly Learning Android, Marko Gargenta• APress Beginning Android 4,Grant Allen• PACKT,Android 3.0 Application Development
Cookbook, Kyle Merrifield Mew • http://developer.android.com
![Page 29: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/29.jpg)
QUESTIONS?
![Page 30: Introduction to android](https://reader035.fdocuments.us/reader035/viewer/2022081413/54961655b479592a118b460f/html5/thumbnails/30.jpg)
THANK YOU