Chapter 6
A Simple Location-Based App Using Augmented Reality and the Maps API
This chapter outlines how to make a very simple real world augmented reality (AR) application. By the end of this chapter, you will have a fully functional example app.
The app will have the following basic features:
- The app will start and display a live camera preview on the screen.
- The camera preview will be overlayed with the sensor and location data, as in the Chapter 3 widget overlay example app.
- When the phone is held parallel to the ground, the app will switch over to display a map. We will add a margin of ±7 because it is unlikely that the user will be able to hold the device perfectly parallel to the ground. The user’s current location will be marked ...
Get Pro Android Augmented Reality now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.