Android and web services

11

Click here to load reader

description

Introduction to Android programming platform. Design consideration for developing web services for Android apps.

Transcript of Android and web services

Page 2: Android and web services

Overview

● What is Android?● Devices● Marketplaces● Communities ● Development Environment● Android and iPhone Differences● Accessing Web Services

Page 3: Android and web services

What Is Android?

● “Android™ delivers a complete set of software for mobile devices: an operating system, middleware and key mobile applications.”

● Part of Open Handset Alliance● Apache License v2● Built on Linux kernel● Eclair SDK 2.0 released on 27th Oct 209

Page 5: Android and web services

Marketplaces

● Distribution of apps is not limited to a single channel● Can be as simple as emailing the package to your friend● Some marketplaces:

○ Google Android Market○ SlideME○ Motorola

Page 6: Android and web services

Communities

● CodeAndroid○ Monthly meetups○ Regional (Malaysia, Thailand)

● Anddev.org (active, friendly)● Google groups (http://developer.android.

com/community/index.html)

Page 7: Android and web services

Development Environment

● Sun JDK● Eclipse (MOTODEV Studio) ● SDK

○ Java - SDK 2.0○ C/C++ - NDK 1.6

Page 8: Android and web services

Android and iPhone Differences

● Licensing ● Distribution channels● Device diversity● Process and thread● Application(GUI, non-GUI, background services)

Page 9: Android and web services

Accessing Web Services

● Platform neutral web standards: HTTP, XML, JSON● HTTP

○ java.net.HttpURLConnection○ org.apache.http.client.*

● XML○ org.w3c.dom○ org.xml.sax○ org.xmlpull.* (performance in constrained environment,

incremental parsing)● JSON

○ org.json○ json-lib ("for transforming beans, maps, collections, java

arrays and XML to JSON and back again to beans and DynaBeans")

Page 11: Android and web services

Question?http://bit.ly/android_php