"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Switching camera from Rotational / Positional device tracking mode.

So I'm making an app currently that I want to be compatible for both older and newer versions of android. I know that Ground Plane detection is only available on newer versions so I've developed both a Ground Plane and non-Ground Plane mode of my app and I'd like to make a switch that automatically activates one based on the phone you're using. I currently use the method of searching the phone name in a list of strings to find if the device is ground plane compatible (as I don't think there's a better way to do it?) and this works fine. My issue is, in my non-ground plane version, I need to use rotational device tracking, however in my ground plane version I need positional device tracking. How do I programatically switch my camera from one mode to the other?

Thanks in advance for your help!

Hello DanielRubins,

You can create a function that attempts to initialize the PDT, but if it fails it falls back on initializing the RDT instead. Here's a quick example.