9781449316419

Building Android Apps with HTML, CSS, and JavaScript : Making Native Apps with Standards-Based Web Tools

by ;
  • ISBN13:

    9781449316419

  • ISBN10:

    1449316417

  • Edition: 2nd
  • Format: Paperback
  • Copyright: 2/1/2012
  • Publisher: Oreilly & Associates Inc

Note: Supplemental materials are not guaranteed with Rental or Used book purchases.

Purchase Benefits

  • Free Shipping On Orders Over $59!
    Your order must be $59 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $39.99 Save up to $21.32
  • Rent Book $25.99
    Add to Cart Free Shipping

    TERM
    PRICE
    DUE

Supplemental Materials

What is included with this book?

  • The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.
  • The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

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.

Rewards Program

Write a Review