Building Android Apps with HTML, CSS, and JavaScript

Author: JonathanStark
Publisher: O'Reilly, 2010
Pages: 184
ISBN: 978-1449383268
Aimed at: Experienced web designers
Rating: 3.5
Pros: Hands-on approach
Cons: Lacks explanations
Reviewed by: Harry Fairhead

This is both an interesting and slightly irritating book. The idea is that instead of having to learn Java and the Android SDK you can simply create web pages that are customised to work well on the mobile platform. Of course if you already know HTML/CSS/Javascript then there isn't much extra to add, as creating pages for a mobile phone isn't that different to creating them for any browser.

Banner

Chapter 1 goes over the fairly obvious advantages and disadvantages of this approach. A native app can get at the special hardware in Android and it can be sold in the app store. A web app can't use the hardware, can't be sold in the app store but it is much easier to create. From here we have some chapters on styling a web page with the Webkit browser in mind. This is all useful and it even goes as far as showing how to use jQuery to add behaviors.

Essentially, however, the only really new information that you are being provided with are the specifics of the Webkit browser, but these are unfortunately buried under pages of examples. As the author says:

Theory is great but I'm a "show me, don't tell me" kinda guy.

If you like being shown how to do something rather than having the principles explained then this approach might suit but from my point of view it simply made it very difficult to see what was new in among all the familiar HTML/CSS and Javascript. Much of the really important information is introduced in boxes that just don't explain what is going on.

Chapter 4 deals with animation using jQTouch. This is a little better because if you haven't use jQTouch all of the material is new. Chapter 5 then goes on to introduce client side data storage using the standard HTML5 local storage and web SQL. Chapter 6 does the same for the HTML offline cache. All of this material is fairly standard and would apply to any web page - but then this is the point of using the web approach to creating an Android application.

Finally we reach the point at which the book changes its nature completely. Chapters 7 and 8 is all about using the PhoneGap framework to build native applications using HTML, CSS and Javascript. The idea is that PhoneGap provides a sort of container in which you can run a web page in with additional Javascript APIs to get at the phone's hardware. Such web apps can be added to the app store and can get at the internal hardware.

This is more Android specific than any of the previous material but it is far too short. The technical level suddenly shoots up but the whole thing is finished before it is started. There is very little idea of how far you can go with PhoneGap and apart from making the phone buzz, using the accelerometer and using some geolocation facilities you are left to figure the rest out for yourself. These last two chapters should have been longer and taken just a little more slowly and with more detail. However as the approach is a "show me" one it still might have been difficult to follow.

If you like being taught how to do things by example and with minimal principles getting between you and doing something then this book will suit you. However I prefer to save the time and have presented what is new as distinct from what I should already know. You do need to know HTML, CSS and Javascript to get very far with this book and hence it isn't for the beginner. I didn't like this approach at all and found it a time waste when what I really wanted was for the differences from standard web page design to be pointed out.

 

Banner


Sams Teach Yourself Visual C# 2010 in 24 Hours

Author: Scott Dorman
Publisher: Sams
Pages: 560
ISBN: 978-0672331015
Aimed at: Difficult to say
Rating: 3
Pros: Some useful info and advice
Cons: Too fast paced for beginner, too shallow for expert
Reviewed by: Mike James
 

This is a new version by a new author of the Visual C#  in 24 hours book,  [ ... ]



Introducing HTML 5

Author: Bruce Lawson & Remy Sharp
Publisher: New Riders, 2010
Pages: 240
ISBN: 978-0321687296
Aimed at: Early adopters
Rating: 4
Pros: Clear and straightforward
Cons: Lacks depth and encourages poor practice
Reviewed by: Ian Elliot

Impatient to get going with HTML5? If you can't wait then you probably [ ... ]


More Reviews

Last Updated ( Friday, 05 November 2010 10:22 )
 
 

   
Banner
RSS feed of book reviews only
I Programmer Book Reviews
RSS feed of all content
I Programmer Book Reviews
Copyright © 2012 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.