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

Launch with an intent

Wouldn't it be cool if you could launch this app any time you go to view an image on your phone, especially 360-degree photospheres?

One of the more powerful features of the Android operating system is the ability to communicate between apps with intents. An intent is a message that any app can send to the Android system, which declares its intent to use another app for a certain purpose. The intent object contains a number of members to describe what type of action needs to be done, and, if any, the data on which it needs to be done. As a user, you may be familiar with the default action picker, which displays a number of app icons, and the choices, Just Once, or Always. What you're seeing is the result of the app you were ...

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