10

Click here to load reader

Codebits Talk

Embed Size (px)

DESCRIPTION

This are the slides that I used in my talk @ codebits' 09

Citation preview

Page 1: Codebits Talk

Programming to

‐ The revolution has begun!! *

‐ A new way of thinking!

Diogo Júnior ‐ [email protected]

* (www.androidpt.com - portuguese android community slogan)

Page 2: Codebits Talk

What is Android?

● Is a mobile operating system

● Run on the Linux kernel

● Developed by Google and the Open Handset Alliance(a consortium of 48 hardware, software, and telecom companies )

● Open Source Project

● Was announced publicly on 5 November 2007

● First mobile device, the G1, was announced on September 2008

Page 3: Codebits Talk

Programming Android Applications

● Written in Java

● Run in Dalvik Virtual Machine (optimized for mobile devices)

● Uses its own bytecode, not Java Bytecode

Page 4: Codebits Talk

Resources –Hardware Independent

● Integrated Browser based on WebKit Engine

● Graphics 2d and 3d optimized(OpenGL ES 1.0)

● SQLite to save structured data

● Multimedia support(MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF)

Page 5: Codebits Talk

Resources –Hardware Dependent

● GSM

● Bluetooth, 3G, WIFI

● Touchscreen

● Camera, GPS, Compass and Accelerometer

Page 6: Codebits Talk

What is an application ? (1/2)

● Application package file : myapplication.apk

● Composed by one or more activities

● AndroidManifest.xml

● Activities-A single screen in your application

● Views-Object who know how t draw itself on the screen

- ListView, MapView, WebView, TextView, EditText…

Page 7: Codebits Talk

What is an application ? (2/2)

● Layouts- Views Containers

- RelativeLayout, Linearlayout, FrameLayout…

● Permissions- Low level access to features(GSM, Internet, GPS, SMS…)

- Declared by the developer

- User prompt on the market at installation

● Services- Background services

● Notifications- Receive and react to broadcasted events

Page 8: Codebits Talk

How to code ?

● Java SDK ●Android SDK

- Android Emulator – Linux, Windows , Mac

- Command Line Tools

- adb - Android Debug Bridge

● Eclipse

● Eclipse Plugin - ADT

Page 9: Codebits Talk

Finding Help

• Android developers website- http://developer.android.com

• Android development community- http://anddev.org

• Portuguese android community-http://androidpt.com

Page 10: Codebits Talk

Time to get your hands dirty!!!