Cover image for PhoneGap Beginner's Guide.
PhoneGap Beginner's Guide.
Title:
PhoneGap Beginner's Guide.
Author:
Lunny, Andrew.
ISBN:
9781849515375
Personal Author:
Edition:
1st ed.
Physical Description:
1 online resource (389 pages)
Contents:
PhoneGap -- Table of Contents -- PhoneGap -- Credits -- About the Author -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Time for action - heading -- What just happened? -- Pop quiz - heading -- Have a go hero - heading -- Reader feedback -- Customer support -- Downloading the example code -- Errata -- Piracy -- Questions -- 1. Installing PhoneGap -- Operating systems -- Dependencies -- Getting started with iOS -- Time for action - Getting an app running on the simulator -- What just happened? -- Installing PhoneGap-iPhone -- Time for action - Hello World with PhoneGap-iPhone -- What just happened? -- Pop quiz - PhoneGap iPhone basics -- Getting started with Android -- A note on development environments -- Time for action - Getting the SDK running -- What just happened? -- PhoneGap Android -- Time for action - Hello World on PhoneGap Android -- What just happened? -- What's in a PhoneGap Android application, anyway? -- Have a go hero - going further with Android -- Getting started with BlackBerry web works -- Time for action - Your first PhoneGap BlackBerry app -- What just happened? -- Code signing for BlackBerry -- Have a go hero - Cross-platform fun -- Summary -- 2. Building and Debugging on Multiple Platforms -- Designing with desktop browsers -- WebKit -- Developing our first application: You Are The Best -- Time for action - Initial design and functionality -- What just happened? -- Our workflow -- Our styles -- Unobtrusiveness -- Width and height -- -webkit-border-radius -- Our scripts -- Unobtrusiveness -- addEventListener -- DOMContentLoaded -- Pop quiz - Initial design -- Using the web inspector -- Accessing web inspector.

Time for action - Simple logging and error checking -- What just happened? -- Have a go hero - Playing with Web Inspector and JavaScript -- Moving to native platforms -- Time for action - You Are The Best for iPhone -- What just happened? -- -- phonegap.js -- deviceready -- Have a go hero - Porting to other platforms -- Summary -- 3. Mobile Web to Mobile Applications -- Implementing web server roles -- Time for action - Implementing LocalStorage -- What just happened? -- Other storage options -- Web SQL -- Indexed DB -- Have a go hero: Exploring LocalStorage -- View templating -- Time for action - Food detail view -- What just happened? -- Pop Quiz - Templating with Mustache -- Accessing remote resources -- Cross-origin policy -- Time for action - Talking about food -- What just happened? -- Accessing remote resources -- Parsing remote data -- Event delegation -- Sleight: The PhoneGap development server -- Have a go hero: Becoming more efficient -- Summary -- 4. Managing a Cross-Platform Codebase -- Inherent differences between platforms -- Using a single codebase -- Time for action - Detection and fallbacks -- What just happened? -- User agent sniffing -- Feature detection -- Pop quiz - Feature detection versus UA sniffing -- Media queries -- Have a go hero -- Preprocessing code -- Summary -- 5. HTML5 APIs and Mobile JavaScript -- Mobile JavaScript -- XUI -- Time for action - Downloading, building, and using XUI -- What just happened? -- Why not jQuery? -- Pop Quiz - XUI -- HTML5 -- Media elements -- Time for action - My dinner with PhoneGap -- What just happened? -- Media events and attributes -- The audio element -- Pop Quiz - Media elements -- The canvas element -- Time for action: Dinner dashboard -- What just happened? -- The canvas API -- A note on performance -- Have a go hero -- What else is in HTML5? -- Summary.

6. CSS3: Transitions, Transforms, and Animation -- Translate with transitions -- Time for action - The modal tweet view -- What just happened? -- Timing functions -- Other transformations -- Have a go hero: CSS transforms -- Scrolling -- Viewports: Visual and otherwise -- iScroll -- Time for action - Scrolling list of food -- What just happened? -- Other approaches -- Pop quiz - Scrolling -- Explicit animations -- Time for action - Animating our headline -- What just happened? -- Have a go hero -- Animations: CSS3 or HTML5? -- Summary -- 7. Accessing Device Sensors with PhoneGap -- What are device sensors? -- Time for action - A postcard writer -- What just happened? -- PhoneGap versus HTML5 -- Other geolocation data -- Pop quiz: Geolocation -- Accelerometer data -- Time for action - Detecting shakes -- What just happened? -- Device orientation and device motion events -- Have a go hero -- Orientation media queries -- Time for action - Landscape postcards -- What just happened? -- Other media queries -- Pop quiz: Orientation and media queries -- Magnetometer: The missing API -- Summary -- 8. Accessing Camera Data and Files -- Time for action - Hello World with the Camera API -- What just happened? -- Browsers are not emulators or devices -- Image sources -- Other options -- Pop quiz: navigator.camera.getPicture -- What about when we finally get an image? -- Time for action - Getting a file path to display -- What just happened? -- Where is this image, anyway? -- Have a go hero! -- Raw image data -- Time for action - Saving pictures -- What just happened? -- Ensure quality is set -- Pop quiz: Destination types -- Editing or accessing live data -- Summary -- 9. Reading and Writing to Contacts -- Time for action - navigator.service.contacts.find -- What just happened? -- ContactFields -- Have a go hero -- Writing contact data.

Time for action - Making friends -- What just happened? -- What if I encounter a new problem? -- ContactFields, ContactName, and similar objects -- Be responsible -- Pop quiz: Contacts -- Summary -- 10. PhoneGap Plugins -- Getting PhoneGap plugins -- Time for action - Integrating ChildBrowser -- What just happened? -- Differences between platforms -- Plugin discovery -- Pop Quiz: Using PhoneGap plugins -- Writing a PhoneGap plugin -- Time for action - Battery view -- What just happened? -- Noteworthy information about the PhoneGap plugin with iOS -- Have a go hero -- Porting your plugin -- Time for action - Android and BlackBerry -- What just happened? -- Do you need cross-platform plugins? -- No limits -- Pop quiz: Writing PhoneGap plugins -- Summary -- 11. Working Offline: Sync and Caching -- Ruby and Sinatra -- Time for action - A news site, with an API -- What just happened? -- Alternatives to Sinatra -- Pop quiz: A simple web service -- Caching new stories -- Time for action - Caching stories in a local database -- What just happened? -- Managing application initialization -- Have a go hero -- Summary -- A. Deploying to iOS -- Time for action-deploying to a device -- What just happened? -- Have a go hero-iOS basics -- B. Pop Quiz Answers -- Chapter 1 -- PhoneGap iPhone Basics Answers -- Chapter 2 -- Initial Design Answers -- Chapter 3 -- Templating with Mustache Answers -- Chapter 4 -- Feature Detection vs UA Sniffing Answers -- Chapter 5 -- XUI Answers -- Media Elements Pop Quiz Answers -- Chapter 6 -- Scrolling Answers -- Chapter 7 -- Geolocation Answers -- Orientation and Media Queries Answers -- Chapter 8 -- navigator.camera.getPicture Answers -- Destination Types Answers -- Chapter 9 -- Contacts Answers -- Chapter 10 -- Using PhoneGap Plugins Answers -- Writing PhoneGap Plugins Answers -- Chapter 11 -- A Simple Web Service Answers -- Index.
Abstract:
Build cross-platform mobile applications with the PhoneGap open source development framework with this book and eBook.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: