0 votes
by (210 points)

Good Day everyone,

we've been using Kiosk mode on Neo2 for over a year so users would start automatically in our app, but could still go to the main menu if they had to with a double click.
With Pico Neo 3 Pro the PUI seems to have changed and it doesn't work anymore.
If we set it as shown in the screenshot to call the 'com.pvr.vrshell', we do get back to the main menu room, but no menu is shown at all and one effectively has to reboot to exit this state.
Is there something wrong with the 'com.pvr.vrshell.MainActivity'?

Set Home Key All

1 Answer

+1 vote
by (55.5k points)
selected by
 
Best answer

Dear developer ,

Sorry to say that changing double click home keys isn't applicable for Neo 3 series. We have revised the relevant documents, you could refer to it .

by (210 points)

Yes, it is possible to change the double click home key to any function as before. I know from testing that it works. It's just the command I'm concerned because it's not working as expected.

My question is rather, whether

com.pvr.vrshell.MainActivity

is the right class to call to not only get back to the main menu room, but actually display the main menu.

by (55.5k points)

Hi,
We tested this blueprint:
enter image description here

And after double click home key, we get back to the main menu room displaying like this:
enter image description here

Could you please tell us you means your menu don't show ?

by (210 points)

Hi,

thank you very much for this extensive testing. I'm still using the legacy SDK as we need to support the Neo 2 for some time going onwards. This might just be an issue with the legacy SDK on Neo 3 then.

I get those errors in the system log when calling the aforementioned function (which seems to be identical to your call except for the "PXR")

Failed to create app data for com.pvr.vrshell, but trying to recover: com.android.server.pm.Installer$InstallerException: java.lang.NullPointerException: Attempt to invoke interface method 'long android.os.IInstalld.createAppData(java.lang.String, java.lang.String, int, int, int, java.lang.String, int)' on a null object reference

com.android.server.pm.Installer$InstallerException: java.lang.NullPointerException: 
Attempt to invoke interface method 'void android.os.IInstalld.destroyAppData(java.lang.String, java.lang.String, int, int, long)' on a null object reference

Recovery failed!

I'm fine with the solution of calling the quick settings instead for our project, so we can close this issue, but users would not be able to exit the Kiosk mode like this at all (again fine for us).

...