Exploit the rich set of Android sensors to build fully aware apps
If you want to create truly amazing apps for Android, you must know how to take advantage of all of its capabilities. This book helps you achieve this by arming you with the knowledge and code you need to put Android′s sensors to good use. From determining the smartphone′s location and interpreting physical sensors to handling images, audio, and recognizing speech, you′ll learn how to effectively apply the sensor– related APIs. With this information, you′ll not only save time during the development process but you′ll also be able to build fully featured apps that integrate new levels of interaction and automation.
Professional Android Sensor Programming:
Shows various ways to implement location tracking and proximity alerts
Uncovers the physics behind the physical sensors available in the SensorManager API so you can know how to apply them appropriately
Shows algorithm code to interpret noisy sensor data and detect changes
Demonstrates how to measure device properties like orientation and movement, as well as environmental properties like relative altitude
Explores using Android Open Accessory (AOA) to access external sensors
Describes Near Field Communication (NFC) technology and its APIs
Provides image and signal processing code to detect patterns captured by the camera and microphone
Exposes all components required to create reliable, user–friendly, speech–enabled apps using Android Speech Recognition and Text–to–Speech APIs
Wrox Professional guides are written by working developers to address everyday needs. They provide examples, practical solutions, and expert education in new technologies, all designed to help programmers do a better job.
Join our Programmer to Programmer forums to ask and answer programming questions about this book, join discussions on the hottest topics in the industry, and connect with fellow programmers from around the world.
Take advantage of free code samples from this book, as well as code samples from hundreds of other books, all ready to use.
Find articles, ebooks, sample chapters, and tables of contents for hundreds of books, and more reference resources on programming topics that matter to you.
PART I: LOCATION SERVICES
CHAPTER 1: INTRODUCING THE ANDROID LOCATION SERVICE 3
CHAPTER 2: DETERMINING A DEVICE′S CURRENT LOCATION 11
CHAPTER 3: TRACKING DEVICE MOVEMENT 27
CHAPTER 4: PROXIMITY ALERTS 45
PART II: INFERRING INFORMATION FROM PHYSICAL SENSORS
CHAPTER 5: OVERVIEW OF PHYSICAL SENSORS 65
CHAPTER 6: ERRORS AND SENSOR SIGNAL PROCESSING 103
CHAPTER 7: DETERMINING DEVICE ORIENTATION 121
CHAPTER 8: DETECTING MOVEMENT 147
CHAPTER 10: ANDROID OPEN ACCESSORY 189
PART III: SENSING THE AUGMENTED, PATTERN–RICH EXTERNAL WORLD
CHAPTER 11: NEAR FIELD COMMUNICATION (NFC) 219
CHAPTER 12: USING THE CAMERA 255
CHAPTER 13: IMAGE–PROCESSING TECHNIQUES 281
CHAPTER 14: USING THE MICROPHONE 303
PART IV: SPEAKING TO ANDROID
CHAPTER 15: DESIGNING A SPEECH–ENABLED APP 333
CHAPTER 16: USING SPEECH RECOGNITION AND TEXT–TO–SPEECH APIS 349
CHAPTER 17: MATCHING WHAT WAS SAID 407
CHAPTER 18: EXECUTING VOICE ACTIONS 441
CHAPTER 19: IMPLEMENTING SPEECH ACTIVATION 471