PhoneGap Mobile Application Development Cookbook.pdf

时间:2016-04-24 04:35:41
【文件属性】:

文件名称:PhoneGap Mobile Application Development Cookbook.pdf

文件大小:5.47MB

文件格式:PDF

更新时间:2016-04-24 04:35:41

PhoneGap 开发手册 mobile Hybrid

PhoneGap开发必备 PhoneGap Mobile Application Development Cookbook Preface 1 Chapter 1: Movement and Location: Using the Accelerometer and Geolocation Sensors 7 Introduction 7 Detecting device movement using the accelerometer 8 Adjusting the accelerometer sensor update interval 12 Updating a display object position through accelerometer events 17 Obtaining device geolocation sensor information 23 Adjusting the geolocation sensor update interval 28 Retrieving map data through geolocation coordinates 33 Creating a visual compass to show the devices direction 40 Chapter 2: File System, Storage, and Local Databases 47 Introduction 47 Saving a file to device storage 47 Opening a local file from device storage 52 Displaying the contents of a directory 57 Creating a local SQLite database 61 Uploading a file to a remote server 66 Caching content using the web storage local storage API 70 Chapter 3: Working with Audio, Images, and Video 79 Introduction 79 Capturing audio using the devices audio recording application 79 Recording audio within your application 85 Playing audio files from the local filesystem or over HTTP 90 Capturing video using the devices video recording application 96 Loading a photograph from the devices camera roll/library 101 Applying an effect to an image using canvas 105 ii Table of Contents Chapter 4: Working with Your Contacts 111 Introduction 111 Listing all available contacts 111 Displaying contact information for a specific individual 117 Creating and saving a new contact 122 Chapter 5: Hook into Native Events 131 Introduction 131 Pausing your application 131 Resuming your application 134 Displaying the status of the device battery levels 138 Making use of the native search button 145 Displaying network connection status 149 Creating a custom submenu 155 Chapter 6: Working with XUI 161 Introduction 161 Learning the basics of the XUI library 163 DOM manipulation 171 Working with touch and gesture events 175 Updating element styles 178 Working with remote data and AJAX requests 183 Animating an element 187


网友评论

  • 很有用,已打印出来看了,谢谢楼主