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!