welcome to linkAR technical documentation



There are some cases in which it is necessary to load the camera outside of the lib. We will explain here the main steps that you need to follow to achieve it.

Preparing the layout

Open or create an XML file to prepare for. In this case, main.xml.

It is necessary to add a SurfaceView object:

  1. Double-click the xml file.
  2. Open the Graphical Layout.
  3. Select Advanced.
  4. Drag and drop the SurfaceView (colored icon) into the view.
  5. Press over the view and assign its id. surfaceView , for instance.