Android workshop

17
Welcome to Android! Arjan Scherpenisse MiracleThings http://miraclethings.nl/ 10 september 2011

description

At GameZoneStudeio, 2011-10-02 VillanellaAntwerp, BE

Transcript of Android workshop

Page 1: Android workshop

Welcome to Android!

Arjan Scherpenisse

MiracleThingshttp://miraclethings.nl/

10 september 2011

Page 2: Android workshop

Overview

About me Android background – What and why System overview Installing the SDK Create your own game!

Page 3: Android workshop

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

hacking a knitting machine...

http://miraclethings.nl/id/852

Page 5: Android workshop

...to knit the score board of a game

Page 6: Android workshop

Playing ping-pong over the internet

Page 7: Android workshop

...using a DIY pingpong-ball canon

Page 8: Android workshop

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

Android building blocks

Activ i t ies Views Intents Services Notifications Content Providers AndroidManifest.xml

Page 10: Android workshop

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

Android building blocks

Views Basic building blocks, the

“controls” Know how to draw

themselves Respond to events

Page 12: Android workshop

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

Installing the SDK

SDKDevelopment environment

1) Install Eclipse 3.6 2) Install Android SDK

Page 14: Android workshop

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

Android Emulator

Page 16: Android workshop

Let's Snake!

Page 17: Android workshop

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? …..