19
Android by Bram Vandeputte

Android Presentation

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Android Presentation

Androidby Bram Vandeputte

Page 2: Android Presentation

Inleiding

• Wat ?

• Verzameling van software-componenten

• Voor mobiele toestellen

• Bevat :

• Besturingssysteem

• Middleware

• Standaard applicaties

Page 3: Android Presentation

Inleiding

• Ontwikkelen

• Java

• Android SDK

• emulator

• tools

• API’s

• Eclipse plug-in

Page 4: Android Presentation

Features• Application framework : enables reuse and replacement of

components

• Dalvik virtual machine : optimized for mobile devices

• Integrated browser based on the open source WebKit engine

• Optimized graphics : custom 2D graphics library; 3D graphics based on the OpenGL ES 1.0 specification (hardware acceleration optional)

• SQLite for structured data storage

• Media support for common audio, video, and still image formats (MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF)

• hardware dependent : GSM Telephony, Bluetooth, EDGE, 3G, WiFi, Camera, GPS, compass, and accelerometer.

Page 5: Android Presentation

Architectuur

Page 6: Android Presentation

Basics : Componenten

• Activity : scherm

• bestaat uit Views

• reageert op Events

• Service : geen UI (bvb. music playback)

• Broadcast Receiver : ontvang & reageer

• Content provider : data delen

Page 7: Android Presentation

Basics

• Componenten activeren :

• Intent : asynchrone berichten

• Om Activity, Service of Broadcast Receiver aan te spreken

• Intent filters

• Content Resolver

• Om Content Provider aan te spreken

Page 8: Android Presentation

Basics (bis)

• AndroidManifest : omschrijving applicatie

• Layout

• Strings

Page 10: Android Presentation

Hello Android

Page 11: Android Presentation

Hello Android

• app :• http://developer.android.com/guide/tutorials/hello-world.html

• Init : maak een AVD

• emulator :• export PATH=${PATH}:/MY/PATH/TO/THE/android-sdk/tools/

• emulator

Page 12: Android Presentation

Hello Android

Page 13: Android Presentation

Hello Android

• tools :• debugging (Eclipse)

• adb

• set PATH

• adb shell

• sqlite3 data

• .dump

• LogCat

Page 14: Android Presentation

Notepad tutorial

• http://developer.android.com/guide/tutorials/notepad/index.html

• Exercise 1

• Exercise 2

• optional :

• Exercise 3

• Extra credit (debugging)

• uitbreiding

Page 15: Android Presentation

bram.vandeputte@cs..,.

Page 16: Android Presentation

MyFirstGPS

• gps mock data

Page 17: Android Presentation

MyFirstGPS

• opbouw

• create textview

• LocationManager & LocationListener

• permissions

• update textview

Page 18: Android Presentation

MyFirstGPS

• http://developer.android.com/guide/tutorials/views

Page 19: Android Presentation

Extra

• API demos

• http://www.anddev.org

• sdcard