20 Recipes for Programming PhoneGap: Cross-Platform Mobile Development for Android and iPhone (Paperback)

Jamie Munro

  • 出版商: O'Reilly
  • 出版日期: 2012-05-01
  • 定價: $525
  • 售價: 3.8$199
  • 語言: 英文
  • 頁數: 78
  • 裝訂: Paperback
  • ISBN: 1449319548
  • ISBN-13: 9781449319540
  • 相關分類: AndroidCross-PlatformR 語言
  • 立即出貨 (庫存 < 3)

買這商品的人也買了...

商品描述

Gain hands-on experience with the amazing PhoneGap library, using the practical recipes in this handy guide. With these solutions, you can enable your mobile web apps to interact with device-specific features such as the accelerometer, GPS, camera, and address book. Learn how to use your knowledge of HTML, CSS, and JavaScript to build full mobile apps for iOS, Android, and several other platforms without rewriting apps in the native platform language. Each recipe includes sample code you can use in your project right away, as well as a discussion of why the solution works.

  • Add functionality that’s available only on a certain device or platform
  • Retrieve the device’s current GPS location and place a marker on a map
  • Create and save a new contact or edit an existing contact in the address book
  • Take pictures with the camera or select one of the user’s existing photos
  • Upload a file from the local device to an external server
  • Allow the device to record audio or video through your app
  • Enable your application to save files locally

商品描述(中文翻譯)

在這本實用指南中,您將能夠透過實際的範例,獲得對令人驚嘆的PhoneGap庫的實際經驗。透過這些解決方案,您可以讓您的移動網頁應用程式與特定設備功能(如加速度計、GPS、相機和通訊錄)進行互動。學習如何運用您對HTML、CSS和JavaScript的知識,以不需重寫原生平台語言的方式,為iOS、Android和其他平台建立完整的移動應用程式。每個範例都包含您可以立即在專案中使用的程式碼,並且解釋了為什麼這個解決方案有效。

本書的內容包括以下幾個方面:
- 添加僅在特定設備或平台上可用的功能
- 檢索設備的當前GPS位置並在地圖上標記
- 創建並保存新聯絡人或編輯現有聯絡人
- 使用相機拍照或選擇用戶現有的照片
- 從本地設備上傳文件到外部伺服器
- 允許設備透過您的應用程式錄製音頻或視頻
- 啟用應用程式在本地保存文件的功能