9
My first application! My first application! Jakub Lipi Jakub Lipi ń ń ski ski MobileMonday Poland MobileMonday Poland

MOPS3_Jakub_Lipinski_My_first_Android_App

Embed Size (px)

Citation preview

Page 1: MOPS3_Jakub_Lipinski_My_first_Android_App

My first application!My first application!

Jakub LipiJakub Lipińńskiski

MobileMonday PolandMobileMonday Poland

Page 2: MOPS3_Jakub_Lipinski_My_first_Android_App

AgendaAgenda

•• What are we going to create?What are we going to create?

•• SDK InstallationSDK Installation

•• Creating a new applicationCreating a new application

•• StockTicker architectureStockTicker architecture

•• Run the applicationRun the application

•• DebuggingDebugging

•• ExercisesExercises

Page 3: MOPS3_Jakub_Lipinski_My_first_Android_App

What are going to create?What are going to create?

Page 4: MOPS3_Jakub_Lipinski_My_first_Android_App

Android SDK installationAndroid SDK installation

•• Eclipse IDE for Java (ganymede)Eclipse IDE for Java (ganymede)from: http://www.eclipse.org/downloads/from: http://www.eclipse.org/downloads/

•• ADT PluginADT Pluginfrom: http://developer.android.com/sdk/1.5_r2/installing.htmlfrom: http://developer.android.com/sdk/1.5_r2/installing.html

•• Android 1.5 SDKAndroid 1.5 SDKfrom http://developer.android.com/sdk/1.5_r2/index.htmlfrom http://developer.android.com/sdk/1.5_r2/index.html

Page 5: MOPS3_Jakub_Lipinski_My_first_Android_App

Android SDK configurationAndroid SDK configuration1. Unpack: 1. Unpack: eclipse*.zip / eclipse*.tar.gzeclipse*.zip / eclipse*.tar.gz2. 2. Start Eclipse, then select Start Eclipse, then select HelpHelp > > Software UpdatesSoftware Updates.. Go Go to to Available SoftwareAvailable Software tabtab

3. Click 3. Click Add SiteAdd Site..., then ..., then ArchiveArchive... ... Select Select ADTADT--0.9.1.zip0.9.1.zip4. S4. Select the checkbox for the elect the checkbox for the „„Developer ToolsDeveloper Tools““.. Click Click InstallInstall5. Follow the instructions and 5. Follow the instructions and restartrestart EclipseEclipse

6. Unzip the 6. Unzip the SDKSDK

7. 7. Select Window > Preferences... to open the Preferences panel (Mac: Eclipse > Preferences).8. Select Android from the left panel.

9. For the SDK Location in the main panel, click Browse...and locate your downloaded SDK directory.

Click Apply, then OK.

Page 6: MOPS3_Jakub_Lipinski_My_first_Android_App

Creating the Creating the projectproject

1.1. Click: Click: FileFile > > NewNew > > ProjectProject2.2. Choose Choose Android ProjectAndroid Project

Page 7: MOPS3_Jakub_Lipinski_My_first_Android_App

Application architectureApplication architecturehttp://http://mm.gpw.pl/.gpw.pl/

Home Screen

WidgetWidget

AppWidgetProvider

Service

Page 8: MOPS3_Jakub_Lipinski_My_first_Android_App

Project structureProject structureAndroidManifest.xmlAndroidManifest.xml

/src/src

/gen/gen

/assets/assets

/res/drawable/res/drawable

/res/layout/res/layout

/res/values/res/values

/bin/bin

Page 9: MOPS3_Jakub_Lipinski_My_first_Android_App

Jakub LipiJakub Lipińńskiski

MobileMonday PolandMobileMonday Poland

Thank YouThank You