Chapter    5

Common and Uncommon Errors and Problems

This chapter deals with the errors and problems you are likely to encounter while writing the example apps from this book or any other augmented reality (AR) app. We’ll take a look at errors related to layouts, the camera, the manifest, and maps. We also have a section for the ones that don’t fit into any of these categories.

Layout Errors

First we’ll take a look at the errors that occur in layouts. There are many such errors, but we’ll be looking only at those that are prone to turning up in AR apps.

UI Alignment Issues

The majority of AR apps use a RelativeLayout in the base layout file. The RelativeLayout then has all the widgets, surface views, and custom views as its children. It is ...

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.