kiosk mode or fullscreen in chromium on android

放肆的年华 提交于 2019-12-12 13:48:50

问题


I have built a chromium ContentShell for my android device as explained here:

https://code.google.com/p/chromium/wiki/AndroidBuildInstructions

I now want to use this ContentShell in fullscreen mode. I tried to add the flag kiosk as explained here:

http://www.chromium.org/developers/how-tos/run-chromium-with-flags

But it is not working. Is there a way to use kiosk mode on android with chromium or would you recommend another way to achieve what i want to have? (display of website in fullscreen without any address bar/menu and also no system ui bars)


回答1:


To get rid of the system UI bars I did this:

service call activity 42 s16 com.android.systemui

As explained here: https://stackoverflow.com/a/19373504/3640770

Then I edited shell_view.xml and added this to the LinearLayout responsible for the toolbar:

android:visibility="gone"

As explained here: https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/6sSGXfPOhqg



来源:https://stackoverflow.com/questions/24450183/kiosk-mode-or-fullscreen-in-chromium-on-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!