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
剩余319页未读,继续阅读
- 粉丝: 0
- 资源: 8
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
- SPC统计方法基础知识.pptx
- MW全能培训汽轮机调节保安系统PPT教学课件.pptx
评论1