Building Android Apps With HTML, CSS, and JavaScript

by ;
Edition: 2nd
Format: Paperback
Pub. Date: 2012-02-01
Publisher(s): Oreilly & Associates Inc
List Price: $39.99

Buy New

Usually Ships in 2-3 Business Days
$39.59

Buy Used

Usually Ships in 24-48 Hours
$29.99

Rent Book

Select for Price
There was a problem. Please try again later.

Rent Digital

Rent Digital Options
Online:1825 Days access
Downloadable:Lifetime Access
$40.79
*To support the delivery of the digital material to you, a digital delivery fee of $3.99 will be charged on each digital item.
$40.79*

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

If you know HTML, CSS, and JavaScript, you already have the tools you need to develop Android applications. This hands-on book shows you how to use these open source web standards-instead of Java-to design and build apps that can be adapted for any Android device. You'll learn how to create an Android-friendly web app on the platform of your choice, and then convert it to a native Android app with Adobe's free PhoneGap framework. Discover why device-agnostic mobile apps are the wave of the future, and start building apps that offer greater flexibility and a broader reach. Learn the basics for making a web page look great on the Android web browser Convert a website into a web application, complete with progress indicators and more Add animation with JavaScript to make your web app look and feel like a native Android app Take advantage of client-side data storage with apps that run even when the Android device is offline Use PhoneGap to hook into advanced Android features-including the accelerometer, geolocation, and alerts Test and debug your app on the Web under load with real users, and then submit the finished product to the Android Market

Author Biography

Jonathan Stark is a mobile-application consultant cited by the Wall Street Journal as "an expert on publishing desktop data to the Web." He's a self-confessed techno-utopian who believes that wireless computing is going to transform every aspect of human society. Brian Jepson is an O'Reilly editor, hacker, and co-organizer of Providence Geeks and the Rhode Island Mini Maker Faire.

Table of Contents

Prefacep. ix
Getting Startedp. 1
Web Apps Versus Native Appsp. 1
What Is a Web App?p. 1
What Is a Native App?p. 1
Pros and Consp. 2
Which Approach Is Right for You?p. 2
Web Programming Crash Coursep. 3
Introduction to HTMLp. 3
Introduction to CSSp. 6
Introduction to JavaScriptp. 9
Bask Stylingp. 13
Don't Have a Website?p. 13
First Stepsp. 15
Prepare a Separate Android Stylesheetp. 19
Control the Page Scalingp. 20
Adding the Android CSSp. 22
Adding the Android Look and Feelp. 26
Adding Basic Behavior with jQueryp. 28
What You've Learnedp. 33
Advanced Stylingp. 35
Adding a Touch of Ajaxp. 35
Traffic Copp. 36
Setting Up Some Content to Work Withp. 38
Routing Requests with JavaScriptp. 39
Simple Bells and Whistlesp. 41
Progress Indicatorp. 41
Setting the Page Titlep. 44
Handling Long Titlesp. 46
Automatic Scroll-to-Topp. 47
Hijacking Local Links Onlyp. 49
Roll Your Own Back Buttonp. 49
Adding an Icon to the Home Screenp. 56
What You've Learnedp. 57
Animationp. 59
With a Little Help from Our Friendp. 59
Sliding Homep. 59
Adding the Dates Panelp. 62
Adding the Date Panelp. 65
Adding the New Entry Panelp. 68
Adding the Settings Panelp. 70
Putting It All Togetherp. 74
Customizing jQTouchp. 76
What You've Learnedp. 78
Client-Side Data Storagep. 79
Web Storagep. 79
Saving User Settings to Local Storagep. 80
Saving the Selected Date to Session Storagep. 84
Web SQL Databasep. 85
Creating a Databasep. 86
Inserting Rowsp. 90
Selecting Rows and Handling Result Setsp. 93
Deleting Rowsp. 97
Web Database Error Code Referencep. 101
What You've Learnedp. 102
Going Offlinep. 103
The Basics of the Offline Application Cachep. 103
Online Whitelist and Fallback Optionsp. 107
Creating a Dynamic Manifest Filep. 113
Debuggingp. 117
The JavaScript Consolep. 118
What You've Learnedp. 120
Going Nativep. 121
Introduction to PhoneGapp. 121
Building Your App Locally with Eclipse and the Android SDKp. 122
Download and Install Eclipse Classicp. 122
Download and Install the Android SDKp. 123
Install the ADT Plug-In in Eclipsep. 123
Add Android Platforms and Other Componentsp. 124
Download the Latest Copy of PhoneGapp. 125
Set Up a New Android Projectp. 125
Running Kilo as an Android Appp. 127
Controlling the Phone with JavaScriptp. 129
Beep, Vibrate, and Alertp. 129
Geolocationp. 133
Accelerometerp. 140
What You've Learnedp. 143
Submitting Your App to the Android Marketp. 145
Preparing a Release Version of Your Appp. 145
Removing Debug Codep. 145
Versioning Your Appp. 146
Compile and Sign Your Appp. 147
Uploading Your App to the Android Marketp. 147
Distributing Your App Directlyp. 149
Further Readingp. 153
Appendix: Detecting Browsers with WURFLp. 155
Table of Contents provided by Ingram. All Rights Reserved.

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.