Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 433 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
433
Dung lượng
5,47 MB
Nội dung
CuuDuongThanCong.com https://fb.com/tailieudientucntt CuuDuongThanCong.com https://fb.com/tailieudientucntt JavaScript Mobile Application Development CuuDuongThanCong.com https://fb.com/tailieudientucntt 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 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 Developing Your First Cordova Application An introduction to Cordova CLI Installing Apache Cordova CuuDuongThanCong.com https://fb.com/tailieudientucntt 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 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 Cordova API in Action Exploring the Cordova Exhibition app The Cordova Exhibition app structure Accelerometer Demo The HTML page View controller API CuuDuongThanCong.com https://fb.com/tailieudientucntt 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 CuuDuongThanCong.com https://fb.com/tailieudientucntt Demo The HTML page View controller API InAppBrowser Demo The HTML page View controller API Summary 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 Developing Custom Cordova Plugins Developing a custom Cordova plugin CuuDuongThanCong.com https://fb.com/tailieudientucntt 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 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 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 CuuDuongThanCong.com https://fb.com/tailieudientucntt The Mega App user interface Finalizing Mega App Deploying and running Mega App Start contributing to Mega App Summary Index CuuDuongThanCong.com https://fb.com/tailieudientucntt CuuDuongThanCong.com https://fb.com/tailieudientucntt MemoManager object / The Mega App model and API Mega App model about / The Mega App model and API Mega App user interface / The Mega App user interface memoCapture.js / The Mega App user interface MemoItem object id attribute / The Mega App model and API title attribute / The Mega App model and API desc attribute / The Mega App model and API type attribute / The Mega App model and API location attribute / The Mega App model and API Mtime attribute / The Mega App model and API MemoManager object about / The Mega App model and API saveMemo(memoItem) method / The Mega App model and API removeMemo(memoID) method / The Mega App model and API removeAllMemos() method / The Mega App model and API getMemoDetails(memoID) method / The Mega App model and API getMemos() method / The Mega App model and API merges directory, Sound Recorder about / The Sound Recorder’s initial structure messageComposeViewController class about / Developing iOS code Controller parameter / Developing iOS code Result parameter / Developing iOS code mobile web application comparing, with hyrbid mobile and native mobile applications / The differences between mobile web, hybrid mobile, and native mobile applications CuuDuongThanCong.com https://fb.com/tailieudientucntt N native mobile application comparing, with mobile web and hybrid mobile applications / The differences between mobile web, hybrid mobile, and native mobile applications navigator.camera.getPicture() function cameraSuccess parameter / API cameraError parameter / API cameraOptions parameter / API navigator.camera.getPicture() method captureSuccess parameter / The Mega App model and API capturingCallback.captureError parameter / The Mega App model and API navigator.camera object navigator.camera.cleanup(cameraSuccess, cameraError) method / API navigator.compass object navigator.compass.getCurrentHeading (compassSuccess, compassError, compassOptions) method / API navigator.contacts.find() method about / API contactSuccess parameter / API contactError parameter / API contactFields parameter / API contactFindOptions parameter / API navigator.contacts object navigator.contacts.create(properties) method / API navigator.geolocation watchPosition(geolocationSuccess, [geolocationError], [geolocationOptions]) method / API clearWatch(watchID) method / API navigator.geolocation.getCurrentPosition() method about / API geolocationSuccess parameter / API geolocationError parameter / API geolocationOptions parameter / API navigator.globalization.getLocaleName() method about / API successCallback parameter / API errorCallback parameter / API navigator.globalization.getPreferredLanguage() method successCallback parameter / API errorCallback parameter / API navigator.globalization method reference link / API Node.js CuuDuongThanCong.com https://fb.com/tailieudientucntt URL / Installing Apache Cordova node package manager (npm) about / Installing Apache Cordova Node Version Manager (NVM) URL / Installing Karma notification.js about / View controller Notification API about / Overview of Cordova APIs NotificationManager about / API showAlert() method / API showConfirm() method / API showPrompt() method / API beep(times) method / API vibrate(milliseconds) method / API NotificationManager.js about / API notification plugin about / Notification demo / Demo HTML page / The HTML page view controller / View controller API / API CuuDuongThanCong.com https://fb.com/tailieudientucntt O onDeviceReady() method about / An insight into the www files OpenWeatherMap URL / An overview of the weather application openWindow(url) method about / API url parameter / API target parameter / API options parameter / API options attributes, captureAudio() method limit / API duration / API CuuDuongThanCong.com https://fb.com/tailieudientucntt P element about / Plugin definition / Plugin definition / Plugin definition / Plugin definition elements Android (