O'Reilly logo

Cardboard VR Projects for Android by Matt Schoen, Jonathan Linowes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Listing installed Cardboard apps

If you haven't forgotten, the purpose of this LauncherLobby app is to show a list of Cardboard apps on the device and let the user pick one to launch it.

If you like what we've built so far, you may want to save a copy for future reference. The changes we're going to make next will significantly modify the code to support a list of views as shortcuts to your apps.

We're going to replace the addContent method with addShortcut and the imageView and textView variables with a list of shortcuts. Each shortcut consists of an ImageView and a TextView to display the shortcut, as well as an ActivityInfo object for the purpose of launching the app. The shortcut images and text will appear on top of each other, as shown earlier, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required