售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
JavaScript Mobile Application Development
Table of Contents
JavaScript Mobile Application Development
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
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. An Introduction to Apache Cordova
What is Apache Cordova?
The differences between mobile web, hybrid mobile, and native mobile applications
Why you should use Cordova
Cordova architecture
Overview of Cordova APIs
Summary
2. Developing Your First Cordova Application
An introduction to Cordova CLI
Installing Apache Cordova
Generating our Sound Recorder's initial code
The Sound Recorder's initial structure
An insight into the www files
Developing Sound Recorder application
Sound Recorder functionality
Sound Recorder preparation
Sound Recorder details
Recording and playing the audio files back
Building and running Sound Recorder application
Summary
3. Apache Cordova Development Tools
Configuring Android development environment
Extending your existing Eclipse IDE
Creating an Android Virtual Device
Importing the Sound Recorder application in to Eclipse
Running the Sound Recorder application on a real Android device
Configuring iOS development environment
Importing the Sound Recorder application into Xcode
Running the Sound Recorder application on a real iOS device
Configuring the Windows Phone development environment
Importing the Sound Recorder application into Visual Studio
Running the Sound Recorder application on a real Windows Phone
Summary
4. Cordova API in Action
Exploring the Cordova Exhibition app
The Cordova Exhibition app structure
Accelerometer
Demo
The HTML page
View controller
API
Camera
Demo
The HTML page
View controller
API
Compass
Demo
The HTML page
View controller
API
Connection
Demo
The HTML page
View controller
API
Contacts
Demo
The HTML page
View controller
API
Device
Demo
The HTML page
View controller
API
Geolocation
Demo
The HTML page
View controller
API
Globalization
Demo
The HTML page
View controller
API
InAppBrowser
Demo
The HTML page
View controller
API
Summary
5. Diving Deeper into the Cordova API
Media, file, and capture
Demo
The HTML page
View controller
API
Notification
Demo
The HTML page
View controller
API
Storage
Demo
The HTML page
View controller
API
Finalizing the Cordova Exhibition app
Cordova events
Summary
6. Developing Custom Cordova Plugins
Developing a custom Cordova plugin
Using plugman
Plugin definition
Defining the plugin's JavaScript interface
Developing Android code
Developing iOS code
Developing Windows Phone 8 code
Publishing our plugin to Cordova Registry
Testing our Cordova plugin
Summary
7. Unit Testing the Cordova App's Logic
What is Jasmine
Configuring Jasmine
Writing your first Jasmine test
Jasmine Matchers
Jasmine in action – developing Cordova app tests
An overview of the weather application
Developing synchronous code tests
Developing asynchronous code tests
Manually executing tests
Automating tests using Karma
Installing Karma
Karma configuration
Running tests (on mobile devices)
Generating XML JUnit and code coverage reports
Integrating tests with the CI tools
Summary
8. Applying it All – the Mega App
Mega App specification/wireframes
Preparing for the Mega App
The Mega App architecture
The Mega App model and API
The Mega App user interface
Finalizing Mega App
Deploying and running Mega App
Start contributing to Mega App
Summary
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜