YYZtech.ca

Hello Android
Introducing Google's mobile development platform

An introduction to programming Google's Android OS.

By: Staff

AdSense

Hello Android is one of the first books on Google's Android platform. According to Google, "Android is a software stack for mobile devices that includes an operating system, middleware and key applications." Android uses its own version of Java based on Java 5 as opposed to Java ME as its native language and the developer toolkit is built around the Eclipse IDE which readers learn to set-up in the first section of the book.

Why Android?
One of the first questions the book tries to answer is, "What is the need for yet another platform for mobile devices, including some already built around Linux and Java?" The answer they give is that Android isn't just an OS but an open source environment that provides not only an OS, but a host of components including audio/video playback, database, location sensing and other features that make developing applications easy.

Along with the  Open Handset Alliance the have a platform in the shape of the T-Mobile G1/HTC Dream handset are taking steps to create an official market for applications, App Market, a clear play on Apple's AppStore.  Apple was right about the need for an AppStore; once you get past the early adopters, most people aren't comfortable with the Internet equivalent of buying their software out of a car trunk. On the other hand, having one store where you need to go for everything sounds like Walmart at best, some kind of Cupertino corporatism at worst, though as anyone who knows an iPhone user, having a ready set of apps easily available and billable to your mobile plan can't be hurting Apple. So Google has got two things right: an open platform with available hardware and a way for developers to make money of the device.

What does the book teach?

After the first introduction to Android, the book takes your through installing the Eclipse-based IDE and creating the obligatory Hello World application. From then on, it's into creating a simple Sudoku game while learning to create user interfaces that will adapt to different layouts. One thing readers will notice is there are a lot of XL files to edit, which shows a bit how new Android is- it brought back memories of hand-editing AmigaDE packager files for the apparently ill-fated AmigaDE/Intent system, that tackled a lot of the problems inherent in writing applications where the screen orientation and size might vary greatly about 8 years ago.

Besides the Sudoku game, there is a chapter on major features of Android including the database (SQLite), 3D graphics, using the WebKit-based browser and the location/orientation APIs. While there are a number of tutorials on individual features, coders looking for advice how to create games for Android are left at Sudoku, though retro arcade games are certainly possible.

The book's layout is sparse, with plenty of black and white screen-shots of the application running in the emulator as well as code listings. Listings have a path above then so they can be found in the download-able source code. There's also a number of break-out boxes with hints and tips about things to watch out for or alternate ways of doing things.

I think that one of the factors that made the early personal computers special was their accessibility with a bit of know how you could figure out how to make your computer do things pretty quickly: poke a number from 0-15 in this memory address and the screen's border changes colour, poke a number into this spot and some unearthly pulsing noise comes out of the TV- 15 year old boys love that kind of stuff; a few years later HTML and Javascript came along and well, that eventually led to MySpace pages with 15 gyrating videos causing unearthly pulsing noises to come out of your laptop. Android has this same potential to be an accessible platform more than a lot of other options, compared to an iPhone, you don't need to purchase a Mac or learn Objective C, Java has become the lingua franca of mobile devices so building a system on it makes sense, the developer kit is a free download and, probably just as importantly, there is a growning installed base of phones and Google is taking steps to make selling your applications easier. The book does a pretty good job teaching readers how to write Android applications and the tips are useful.

Date published: 13-Mar-2009

AdSense

Comments

AdSense

Related

Learning Android

A “distilled version of the Marakana Android Bootcamp”

Learn Java for Android Development

Before you compile, you need to learn Java.

6 Tips for using free Wi-Fi Safely

Six tips for things to watch out for when using free WiFi when out on the road.

Canadian App Makes Android Devices Kid-Proof

Lock up your Android phone or tablet with this app that lets parents restrict what apps kids use, who can call them.

Sponsored



2017 YYZTech



For American computers stores, visit: AmericanComputerDealer.com

Google+