Chapter 5
Interacting with Device Hardware and Media
Integrating application software with device hardware presents opportunities to create unique user experiences that only the mobile platform can provide. Capturing media by using the microphone and camera allows applications to incorporate a personal touch through a photo or recorded greeting. Integration of sensor and location data can help you develop applications to answer relevant questions such as “Where am I?” and “What am I looking at?”
In this chapter, we are going to investigate how to leverage the location, media, and sensor APIs provided by Android to add that unique value the mobile device brings into your applications.
5-1. Integrating Device Location
Problem
You want to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access