cancel
Showing results for 
Search instead for 
Did you mean: 

Check for plugged/unplugged Gear VR

wildbytes
Honored Guest
Hello! 

I need to check from an android service if the Gear VR is plugged to my S7. How could I achieve this? I tried checking if the com.samsung.android.hmt.vrsvc is running but it runs sometimes even if the Gear VR are unplugged.

Thanks in advance!
1 REPLY 1

wildbytes
Honored Guest
Solved. Using Action flags "android.hardware.usb.action.USB_DEVICE_ATTACHED" and "android.hardware.usb.action.USB_DEVICE_DETACHED" in Android and sending a broadcast message through a custom plugin to the service from my Unity app to tell that UnityEngine.VR.VRDevice.isPresent is true.