Android Sensor Programming By Example

0
(0)

Android Sensor Programming By Example
 

  • Author:Varun Nagpal
  • Length: 194 pages
  • Edition: 1
  • Publisher: Packt Publishing
  • Publication Date: 2016-04-29
  • ISBN-10: B016MWRF20
  • Sales Rank: #1269311 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    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.

    Style and approach

    A step-by-step and easy-to-follow guide that focuses on utilizing sensors to perform certain tasks. After covering the fundamentals in the first chapter, the book develops the concepts by building a real-world, sensor-based application in subsequent chapters.

    Table of Contents

    Chapter 1. Sensor Fundamentals
    Chapter 2. Playing with Sensors
    Chapter 3. The Environmental Sensors – The Weather Utility App
    Chapter 4. The Light and Proximity Sensors
    Chapter 5. The Motion, Position, and Fingerprint Sensors
    Chapter 6. The Step Counter and Detector Sensors – The Pedometer App
    Chapter 7. The Google Fit Platform and APIs – The Fitness Tracker App

    中文:

    书名:Android Sensor Programming By Example

    通过探索种类繁多的Android传感器,将您的Android应用程序提升到更高的交互级别

    About This Book

    • 深入了解Android传感器的基本原理和框架。
    • 学习高级传感器编程知识,并学习如何连接和使用外部设备中的传感器,如Android Watch、Polar心率监测器、阿迪达斯速度电池等。
    • 向现实世界中基于传感器的应用程序学习,例如检测日常步数的计步器应用程序,检测驾驶事件的驾驶应用程序,以及跟踪心率、体重、日常步数和燃烧的卡路里等的专业健身跟踪应用程序。

    这本书是为谁写的

    本书面向希望深入了解传感器并编写基于传感器的应用程序的Android开发人员,或者希望通过添加传感器功能来增强现有应用程序的Android开发人员。需要具备Android开发的基本知识

    你将学到什么

    • 了解传感器基础知识、不同类型的传感器以及传感器坐标系
    • 了解Android传感器框架的各种类、回调和API
    • 检查Android设备上所有可用的传感器,了解它们的单独功能–例如,它们的值范围、功耗等。
    • 使用两个或多个传感器一起实施传感器融合,并学习如何利用一个传感器的优势来弥补另一个传感器的弱点
    • 构建各种基于传感器的真实应用程序,如天气、计步器、指南针、驾驶事件检测、健身跟踪器等。
    • 了解唤醒和非唤醒传感器、唤醒锁定以及如何将传感器批处理与传感器硬件FIFO队列一起使用
    • 使用原始传感器数据开发高效的电池和处理器算法,以解决实际问题
    • 使用Android应用程序中的Google Fit平台连接到各种远程传感器,如体重测量和体脂百分比测量

    In Detail

    当今市场上的安卓手机都配备了各种功能强大、精度极高的传感器。使用它们可以构建有趣的应用程序,例如使用天气传感器的本地天气应用程序,使用运动传感器分析危险驾驶行为的应用程序,使用步长传感器的健身跟踪器,等等。外部设备上的传感器,如Android Watch、Body Analyzer&Weight Machine、Running Fast Cell等,也可以通过手机上运行的Android应用程序连接和使用。

    更进一步,这本书将提供在Android应用程序中使用传感器所需的技能。它将引导您了解传感器的所有基础知识,并提供对Android传感器框架的全面了解。您还将学习如何为支持性基础设施编写代码,例如后台服务、计划和长期运行的后台线程以及用于保存传感器数据的数据库。此外,您还将学习如何使用Google Fit平台从您的Android应用程序连接和使用外部设备中的传感器。

    到本书结束时,您将精通如何使用Android传感器和编程来构建交互式应用程序。

    风格和方法

    这是一本循序渐进且易于遵循的指南,重点介绍如何利用传感器执行某些任务。在第一章中介绍了基础知识之后,本书在随后的章节中通过构建基于传感器的真实世界应用程序来发展概念。

    Table of Contents

    第1章传感器基础知识
    第2章:使用传感器
    第三章环境传感器-天气实用应用程序
    第四章光线和接近感应器
    第5章.运动、位置和指纹传感器
    第6章计步器和探测器传感器-计步器应用程序
    Chapter 7. The Google Fit Platform and APIs – The Fitness Tracker App

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册