Android Sensor Programming By Example


Android Sensor Programming By Example
by Varun Nagpal
pages 页数: 194 pages
Publisher Finelybook 出版社: Packt Publishing (29 April 2016)
Language 语言: English
ISBN-10 书号: 1785285505
ISBN-13 书号: 9781785285509
B016MWRF20
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.
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传感器,将您的Android应用程序提升到更高水平的互动性
关于这本书
了解Android传感器的基本原理和框架。
获取先进的传感器编程知识,并学习如何连接和使用传感器在外部设备,如Android手表,极地心率监测器,阿迪达斯速度单元等。
从现实世界的传感器应用程序(如计步器应用程序)中查看每日步骤,驾驶应用程序以检测驾驶事件,以及专业健身跟踪应用程序来跟踪心率,体重,日常步骤,燃烧的卡路里等。
这本书是谁
本书针对的是希望了解传感器和编写基于传感器的应用程序的Android开发人员,或希望通过附加传感器功能来增强现有应用程序的Android开发人员。需要Android开发的基本知识
你会学到什么
了解传感器基础知识,不同类型的传感器和传感器坐标系统
了解Android Sensor框架的各种类,回调和API
检查Android设备上的所有可用传感器,并了解其各自的功能 - 例如,它们的值,功耗等。
使用两个或多个传感器实现传感器融合,并通过使用另一个传感器的强度来学习补偿一个传感器的弱点
构建各种基于传感器的现实应用,如天气,计步器,指南针,驾驶事件检测,健身跟踪等。
了解唤醒和非唤醒传感器,唤醒锁以及如何使用传感器批处理以及传感器硬件FIFO队列
使用原始传感器数据开发高效的电池和处理器算法来解决现实问题
使用Android应用程式中的Google Fit平台,连接各种远程传感器,例如体重测量和身体脂肪百分比测量
详细
当今市场上的Android手机拥有各种功能强大且高精度的传感器。可以使用它们来构建有趣的应用,例如使用天气传感器的本地天气应用,使用运动传感器分析危险驾驶行为,使用步进计数器传感器的健身跟​​踪器等。外部设备中的传感器,如Android手表,车身分析仪和重量机,运行速度单元等,也可以从您手机上运行的Android应用程序连接并使用。
进一步,本书将提供在Android应用程序中使用传感器所需的技能。它将引导您了解传感器的所有基础知识,并将全面了解Android Sensor Framework。您还将学习如何编写支持性基础架构的代码,例如后台服务,计划和长期运行的后台线程以及用于保存传感器数据的数据库。此外,您将学习如何使用Google Fit平台从Android应用程序连接和使用外部设备中的传感器。
在本书的最后,您将会精通使用Android传感器和编程来构建交互式应用程序。
风格和方法
一个分步和易于遵循的指南,重点是利用传感器执行某些任务。在第一章涵盖基础知识之后,本书通过在后续章节中构建一个真实的,基于传感器的应用程序来开发这些概念。
目录
传感器基础知识
第二章玩传感器
第3章环境传感器 - 天气实用程序应用程序
第4章光和接近传感器
第5章运动,位置和指纹传感器
第6章步进计数器和检测器传感器 - 计步器应用程序
第7章Google Fit平台和API - 健身追踪器应用程序

下载地址 Download
打赏
未经允许不得转载:finelybook » Android Sensor Programming By Example

相关推荐

  • 暂无文章

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下

您的打赏,我们将继续给力更多优质内容

支付宝扫一扫打赏

微信扫一扫打赏