I'm using the Google Cardboard (its HeadTracker
class) to detect certain things about device rotation in an AR application. It works very well.
However, on some devices, it doesn't work (nothing happens). I assume this is because they don't have the necessary sensors. My questions:
1) I want to detect at runtime whether the current device supports the HeadTracker, i.e. it has the necessary sensors available. For this, I need to know which sensors are used by HeadTracker, so that I can query if those sensors are present. What are these sensors?
2) Is there a way to specify the necessary sensors in AndroidManifest? As far as I can see, there is no way. Therefore, if a user downloads my app, the app will have to inform the user at runtime that his device is not supported. This is not nice. Any thoughts?
uses-feature android:glEsVersion="0x00020000"
in your manifest? Can you elaborate on "nothing happens"? You mean you do not get any accelerometer data? – Commercialize