Android workshop
-
Upload
arjan -
Category
Technology
-
view
869 -
download
1
description
Transcript of Android workshop
Welcome to Android!
Arjan Scherpenisse
MiracleThingshttp://miraclethings.nl/
10 september 2011
Overview
About me Android background – What and why System overview Installing the SDK Create your own game!
About me
Mixed background Computer science (AI, UvA class of 2005) Unstable Media Art (Rietveld, class of 2009)
Now: independent software developer Projects range from web development to “creative
media art”
hacking a knitting machine...
http://miraclethings.nl/id/852
...to knit the score board of a game
Playing ping-pong over the internet
...using a DIY pingpong-ball canon
Android background
Popular open-source mobile phone OS “all applications are equal model”
Application framework Webkit browser OpenGL for graphics SQLite for data storage Media support: audio, video, images, … Sensors: camera, GPS, compass, ...
Android building blocks
Activ i t ies Views Intents Services Notifications Content Providers AndroidManifest.xml
Android building blocks
Activ i t ies Stacked deck of cards Only one is visible Only one is active New activities are placed on top
Activities can be in different states Active, paused, stopped, dropped
Android building blocks
Views Basic building blocks, the
“controls” Know how to draw
themselves Respond to events
Android building blocks
Intents Used to move between Activities “I want to take a picture” “I want to open the highscore screen”
Installing the SDK
SDKDevelopment environment
1) Install Eclipse 3.6 2) Install Android SDK
Installation: step-by-step
First Eclipse: http://www.eclipse.org/downloads/ Choose: Ecl ipse Classic 3.7.1
Then Android SDK: http://developer.android.com/sdk/index.html
Then ADT plugin for Eclipse: In Eclipse: Help > Install New Software.... https://dl-ssl.google.com/android/eclipse/
When done, set “SDK Location” in Eclipse Android preferences
Android Emulator
Let's Snake!
What's next:
Create new project from example, “Snake” Try running it
in the emulator on your phone
Make the game cooler: Better collision detection New graphics? Change speed of the game, difficulty levels Highscores? …..