Android Sensor Programming By Example(Paperback)

Varun Nagpal

  • 出版商: Packt Publishing
  • 出版日期: 2016-04-29
  • 售價: $1,710
  • 貴賓價: 9.5$1,625
  • 語言: 英文
  • 頁數: 194
  • 裝訂: Paperback
  • ISBN: 1785285505
  • ISBN-13: 9781785285509
  • 相關分類: AndroidR 語言感測器 Sensor
  • 下單後立即進貨 (約3~4週)

商品描述

Take your Android applications to the next level of interactivity by exploring the wide variety of Android sensors

About This Book

  • Get a thorough understanding of the fundamentals and framework of Android sensors
  • Acquire knowledge of advance sensor programming, and learn how to connect and use sensors in external devices such as the Android Watch, Polar heart rate monitors, Adidas speed cells, and so on
  • Learn from real-world sensor-based applications such as the Pedometer app to detect daily steps, the Driving app to detect driving events, and the Professional Fitness tracker app to track heart rate, weight, daily steps, calories burned, and so on

Who This Book Is For

This book is targeted at Android developers who want to get a good understanding of sensors and write sensor-based applications, or who want to enhance their existing applications with additional sensor functionality. A basic knowledge of Android development is required

What You Will Learn

  • Learn about sensor fundamentals, different types of sensors, and the sensor co-ordinate system
  • Understand the various classes, callbacks, and APIs of the Android Sensor framework
  • Check all the available sensors on an Android device and know their individual capabilities-for example, their range of values, power consumption, and so on
  • Implement sensor fusion using two or more sensors together and learn to compensate for the weakness of one sensor by using the strength of another
  • Build a variety of sensor based, real-world applications such as Weather, Pedometer, Compass, Driving Events Detection, Fitness Tracker, and so on
  • Get to know about wake up and non-wake up sensors, wake locks, and how to use sensor batch processing along with the sensor hardware FIFO queue
  • Develop efficient battery and processor algorithms using raw sensor data to solve real-world problems
  • Connect to a variety of remote sensors such as body weight measurement and body fat percentage measurement using the Google Fit platform from your Android app

In Detail

Android phones available in today's market have a wide variety of powerful and highly precise sensors. Interesting applications can be built with them such as a local weather app using weather sensors, analyzing risky driving behavior using motion sensors, a fitness tracker using step-counter sensors, and so on. Sensors in external devices such as Android Watch, Body Analyzer & Weight Machine, Running Speed Cell, and so on can also be connected and used from your Android app running on your phone.

Moving further, this book will provide the skills required to use sensors in your Android applications. It will walk you through all the fundamentals of sensors and will provide a thorough understanding of the Android Sensor Framework. You will also get to learn how to write code for the supportive infrastructure such as background services, scheduled and long running background threads, and databases for saving sensor data. Additionally, you will learn how to connect and use sensors in external devices from your Android app using the Google Fit platform.

By the end of the book, you will be well versed in the use of Android sensors and programming to build interactive applications.

商品描述(中文翻譯)

將您的Android應用程式提升到更高的互動水平,透過探索各種Android感應器的廣泛應用。

關於本書
- 深入了解Android感應器的基礎知識和框架
- 獲得進階感應器程式設計的知識,並學習如何連接和使用外部設備中的感應器,例如Android手錶、Polar心率監測器、Adidas速度感應器等
- 從實際的基於感應器的應用程式中學習,例如計步器應用程式用於檢測每日步數、行車應用程式用於檢測駕駛事件,以及專業健身追踪器應用程式用於追踪心率、體重、每日步數、燃燒的卡路里等。

本書適合對Android開發有基本了解的開發人員,他們希望深入了解感應器並撰寫基於感應器的應用程式,或者希望通過增加感應器功能來增強現有應用程式。

您將學到什麼
- 了解感應器的基礎知識、不同類型的感應器以及感應器座標系統
- 理解Android感應器框架的各種類別、回調和API
- 檢查Android設備上的所有可用感應器,並了解它們的個別功能,例如值的範圍、功耗等
- 使用兩個或多個感應器實現感應器融合,並學習如何通過使用另一個感應器的優勢來補償一個感應器的弱點
- 構建各種基於感應器的實際應用程式,例如天氣、計步器、指南針、行車事件檢測、健身追踪器等
- 了解喚醒和非喚醒感應器、喚醒鎖定以及如何與感應器硬體FIFO佇列一起使用感應器批次處理
- 使用原始感應器數據開發高效的電池和處理器演算法,以解決實際問題
- 從Android應用程式連接到各種遠端感應器,例如使用Google Fit平台測量體重和體脂百分比的感應器

詳細內容
現今市場上的Android手機擁有各種功能強大且高精度的感應器。您可以使用這些感應器來建立有趣的應用程式,例如使用天氣感應器建立本地天氣應用程式,使用運動感應器分析危險駕駛行為,使用步數計感應器建立健身追踪器等等。您還可以從Android應用程式連接並使用外部設備中的感應器,例如Android手錶、體脂分析儀和體重計、跑步速度感應器等。

本書將提供使用感應器的技能,幫助您在Android應用程式中使用感應器。它將引導您了解所有感應器的基礎知識,並深入了解Android感應器框架。您還將學習如何為支援基礎設施編寫程式碼,例如背景服務、計劃和長時間運行的背景執行緒以及用於保存感應器數據的資料庫。此外,您還將學習如何使用Google Fit平台從Android應用程式連接和使用外部設備中的感應器。

通過閱讀本書,您將熟練使用Android感應器和程式設計,以建立互動應用程式。