Have the starting application be something other than the Viveport Menu

Highlighted
Modal
Settler

Have the starting application be something other than the Viveport Men...

Is it possible for the headset on boot to start an application that is not the Viveport menu?

 

The idea is that when the headsets are available for commercial use, we'd like the consumer to only see the app that they chose before hand and not give them a menu where they have multiple options

Moderator

Re: Have the starting application be something other than the Viveport...

Yes, it's possible. We'd prefer for consumer units to begin on the Viveport Home Launcher screen, but can make business cases for enterprise, LBE apps, etc.   Get in touch with your Vive contact for more information. 

xstudios
Settler

Re: Have the starting application be something other than the Viveport...

JustinVive,

We are currently developing a majory themed attraction starting with 50 Vive Focus headsets with the possibility of more in the future.  We need to able to launch our application on headset boot also we need to remove the Controller Sync message that comes up every time the headset is taken off and put back on. 

 

We don't have a contact with Vive and hoped you could help us find one. It sounds like we need this business software you mention in this thread.

Moderator

Re: Have the starting application be something other than the Viveport...

It's the same as in any Android device, you can define a launcher activity with:

<intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

then see the ADB tips sheet to see how to select default launcher from the command line.

Created in the LIV Cube: http://liv.tv/liv-cube Beat Saber Mixed Reality Powered by LIV: http://bit.ly/LIV2Beat Ready Player: http://swanvrart.com Game: http://beatsaber.com Music by: Jaroslav Beck a.k.a Sqeepo Song Download: https://fanlink.to/Escp
Modal
Settler

Re: Have the starting application be something other than the Viveport...

Hey Dario,

 

The android XML already had the Launcher intent so the problem is telling the HMD to launch a specific application I loaded instead of the com.htc.mobilevr.launcher package

 

I looked through this link

http://community.viveport.com/t5/Vive-Wave-SDK/Focus-Android-Debug-Bridge-Quick-Tips/gpm-p/12668#M5

which I thought was the tips sheet you were refering too but I don't see anyway to replace the launcher application in there.

 

I also looked through this link as well:

https://developer.android.com/studio/command-line/adb.html

But couldn't find anything about changing the launcher application there either.

 

I did find this link:

https://stackoverflow.com/questions/6391902/how-do-i-start-my-app-on-startup

which is how I assume the com.htc.mobilevr.launcher package is doing it but wanted to know if there was an easier way to do it than that.

Moderator

Re: Have the starting application be something other than the Viveport...

xstudios
Settler

Re: Have the starting application be something other than the Viveport...

HI Dario -

 

We are able to successfully start our application using the following command:

./adb shell am start -n com.xstudios.JumpLeague/com.htc.vr.unity.WVRUnityVRActivity

 

However, we are unable to set the home activity to make it the default launcher when the headset boots. We get the following error:

./adb shell cmd package set-home-activity com.xstudios.JumpLeague/com.htc.vr.unity.WVRUnityVRActivity
java.lang.IllegalArgumentException: Component ComponentInfo{com.xstudios.JumpLeague/com.htc.vr.unity.WVRUnityVRActivity} cannot be home on user 0

 

Here is the activity defined in the AndroidManifest.xml:

<activity
            android:label="@ref/0x7f050001"
            android:name="com.htc.vr.unity.WVRUnityVRActivity"
            android:launchMode="2"
            android:screenOrientation="0"
            android:configChanges="0x40003fff"
            android:enableVrMode="@ref/0x7f050003">

            <intent-filter>

                <action
                    android:name="android.intent.action.MAIN" />

                <category
                    android:name="android.intent.category.LAUNCHER" />

                <category
                    android:name="com.htc.intent.category.VRAPP" />

                <category
                    android:name="android.intent.category.LEANBACK_LAUNCHER" />
            </intent-filter>

            <meta-data
                android:name="unityplayer.UnityActivity"
                android:value="true" />

            <meta-data
                android:name="unityplayer.SkipPermissionsDialog"
                android:value="true" />
        </activity>

Any help you can provide is greatly appreciated. Thanks.

 

 

Moderator

Re: Have the starting application be something other than the Viveport...

try adding:

<category android:name="android.intent.category.DEFAULT" />
xstudios
Settler

Re: Have the starting application be something other than the Viveport...

We have added both of the following:

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.HOME" />

 And while running the set-home-activity command shows success, it still does not launch the app on reboot.  It still launches to the Viveport Menu.  

  

./adb shell cmd package set-home-activity com.xstudios.JumpLeague/com.htc.vr.unity.WVRUnityVRActivity
Success

 

j@htxlabs
Visitor

Re: Have the starting application be something other than the Viveport...

Have you had any luck on this? This is an important feature for enterprise and serious-vr deployments. Glad to know VIVE is supporting openess of the VIVE Focus hardware platform. 

Kavery
Explorer

Re: Have the starting application be something other than the Viveport...

Would love to know how to do this too.

Vive Staff

Re: Have the starting application be something other than the Viveport...

If you'd like the device to boot with a custom app, then please reach out to our enterprise team for a solution.

https://enterprise.vive.com/us/enterprise_form/

hhbhagat1417
Contributor

Re: Have the starting application be something other than the Viveport...

https://snow.dog/blog/kiosk-mode-android

I don't have mine yet, but maybe this will help if Vive didn't strip it out of Android?

Vive Staff

Re: Have the starting application be something other than the Viveport...

Hi @hhbhagat1417,

 

Thanks for your information.

Vive Focus already launched enterprise solution with Kiosk Mode support.