Upload
peterbuck
View
273
Download
0
Tags:
Embed Size (px)
Citation preview
My first application!My first application!
Jakub LipiJakub Lipińńskiski
MobileMonday PolandMobileMonday Poland
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
What are going to create?What are going to create?
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
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.
Creating the Creating the projectproject
1.1. Click: Click: FileFile > > NewNew > > ProjectProject2.2. Choose Choose Android ProjectAndroid Project
Application architectureApplication architecturehttp://http://mm.gpw.pl/.gpw.pl/
Home Screen
WidgetWidget
AppWidgetProvider
Service
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
Jakub LipiJakub Lipińńskiski
MobileMonday PolandMobileMonday Poland
Thank YouThank You