cancel
Showing results for 
Search instead for 
Did you mean: 

Receive event when GearVR gets mounted?

fabianartcom
Honored Guest
Hello,
I want to develop an Android background service that should monitor when the GearVR gets mounted on the users head.
Is there any way to do that, I've found nothing so far.
Cheers,
Fabian


4 REPLIES 4

zproxy
Expert Protege
com.samsung.intent.action.HMT_CONNECTED

fabianartcom
Honored Guest
I registered a BroadcastReceiver in the AndroidManifest.xml as follows:
<receiver
android:name=".MyReceiver"
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="com.samsung.intent.action.HMT_CONNECTED" />
<action android:name="com.samsung.intent.action.HMT_DISCONNECTED" />
</intent-filter>
</receiver>
I tested it with other custom intent actions and the Receiver triggered. But the "com.samsung.intent.action.HMT_CONNECTED" was not fired on mounting the glasses.

cybereality
Grand Champion
Moving to the Mobile Development section.
AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV

RexHall
Honored Guest
Was there a solution for the "com.samsung.intent.action.HMT_CONNECTED not fired" problem?