06-25-2018 04:50 AM
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.MONKEY"/>
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
After that, you need to execute this command via adb.adb shell cmd package set-home-activity <your package name>/<your activity name>
You can find your package name and your activity name in manifest file. After reboot device will start your app!AndroidDaemonService is simple service that has static singleton field. You have to write it by yourself.public void onCreate(@Nullable Bundle savedInstanceState, @Nullable PersistableBundle persistentState) {
super.onCreate(savedInstanceState, persistentState);
Intent mServiceIntent = new Intent(this, AndroidDaemonService.class);
this.startService(mServiceIntent);
}
So after you press home button, device will try to load Oculus home and immediately return to your application. For a user it will look like a white flash. So it's not a perfect solution, but at least it works.protected void onStop() {
super.onStop();
Context context = AndroidDaemonService.instance;
Intent launchIntent = context.getPackageManager().getLaunchIntentForPackage(context.getPackageName());
launchIntent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
context.startActivity(launchIntent);
}
10-16-2018 02:17 PM
10-17-2018 11:37 AM
10-25-2018 05:23 PM
11-07-2018 08:49 AM
11-27-2018 04:35 PM
11-28-2018 03:00 PM
11-28-2018 09:29 PM
YerbaBuenaVR said:
@AlexEvgrashin , a silly follow up question. Suppose i'm done using a Go in kiosk mode and want to restablish it in nromal mode. What's the best way to do it? I imagine it would be something like re-instating oculus home as the home activity. Do you happen to know the package/activity name?Doing a dumpsys, i seecom.oculus.vrshell/.MainActivitydo you know if this would be it?
11-29-2018 10:56 AM
04-30-2019 01:46 PM
nikonutsch said:
dear people
for those how want to use a browser in kioskmode: with firefox vr browser and undef def-s kiosk solution
it does work.
wbr
klaus
05-23-2019 06:25 AM