android workshop
DESCRIPTION
At GameZoneStudeio, 2011-10-02 VillanellaAntwerp, BETRANSCRIPT
![Page 1: Android workshop](https://reader033.vdocument.in/reader033/viewer/2022052907/55943df61a28abd35b8b464d/html5/thumbnails/1.jpg)
Welcome to Android!
Arjan Scherpenisse
MiracleThingshttp://miraclethings.nl/
10 september 2011
![Page 2: Android workshop](https://reader033.vdocument.in/reader033/viewer/2022052907/55943df61a28abd35b8b464d/html5/thumbnails/2.jpg)
Overview
About me Android background – What and why System overview Installing the SDK Create your own game!
![Page 3: Android workshop](https://reader033.vdocument.in/reader033/viewer/2022052907/55943df61a28abd35b8b464d/html5/thumbnails/3.jpg)
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”
![Page 4: Android workshop](https://reader033.vdocument.in/reader033/viewer/2022052907/55943df61a28abd35b8b464d/html5/thumbnails/4.jpg)
hacking a knitting machine...
http://miraclethings.nl/id/852
![Page 5: Android workshop](https://reader033.vdocument.in/reader033/viewer/2022052907/55943df61a28abd35b8b464d/html5/thumbnails/5.jpg)
...to knit the score board of a game
![Page 6: Android workshop](https://reader033.vdocument.in/reader033/viewer/2022052907/55943df61a28abd35b8b464d/html5/thumbnails/6.jpg)
Playing ping-pong over the internet
![Page 7: Android workshop](https://reader033.vdocument.in/reader033/viewer/2022052907/55943df61a28abd35b8b464d/html5/thumbnails/7.jpg)
...using a DIY pingpong-ball canon
![Page 8: Android workshop](https://reader033.vdocument.in/reader033/viewer/2022052907/55943df61a28abd35b8b464d/html5/thumbnails/8.jpg)
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, ...
![Page 9: Android workshop](https://reader033.vdocument.in/reader033/viewer/2022052907/55943df61a28abd35b8b464d/html5/thumbnails/9.jpg)
Android building blocks
Activ i t ies Views Intents Services Notifications Content Providers AndroidManifest.xml
![Page 10: Android workshop](https://reader033.vdocument.in/reader033/viewer/2022052907/55943df61a28abd35b8b464d/html5/thumbnails/10.jpg)
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
![Page 11: Android workshop](https://reader033.vdocument.in/reader033/viewer/2022052907/55943df61a28abd35b8b464d/html5/thumbnails/11.jpg)
Android building blocks
Views Basic building blocks, the
“controls” Know how to draw
themselves Respond to events
![Page 12: Android workshop](https://reader033.vdocument.in/reader033/viewer/2022052907/55943df61a28abd35b8b464d/html5/thumbnails/12.jpg)
Android building blocks
Intents Used to move between Activities “I want to take a picture” “I want to open the highscore screen”
![Page 13: Android workshop](https://reader033.vdocument.in/reader033/viewer/2022052907/55943df61a28abd35b8b464d/html5/thumbnails/13.jpg)
Installing the SDK
SDKDevelopment environment
1) Install Eclipse 3.6 2) Install Android SDK
![Page 14: Android workshop](https://reader033.vdocument.in/reader033/viewer/2022052907/55943df61a28abd35b8b464d/html5/thumbnails/14.jpg)
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
![Page 15: Android workshop](https://reader033.vdocument.in/reader033/viewer/2022052907/55943df61a28abd35b8b464d/html5/thumbnails/15.jpg)
Android Emulator
![Page 16: Android workshop](https://reader033.vdocument.in/reader033/viewer/2022052907/55943df61a28abd35b8b464d/html5/thumbnails/16.jpg)
Let's Snake!
![Page 17: Android workshop](https://reader033.vdocument.in/reader033/viewer/2022052907/55943df61a28abd35b8b464d/html5/thumbnails/17.jpg)
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? …..