Android Question How to open a link in Chrome hiding the navigation bar

Aegis

Member
Hello
I'm trying to make an app for an industrial tablet , and have to open a page in chrome hiding the URL navigation bar (KIOSK style).

The customer told me, the way they do it, is by adding to the homescreen a link to the page ( from chrome top right-> add to home).
Manually opening a page through such icon, will display it in chrome without the navbar.

I ran my tests and...it doesnt work. On android 11 to 13 tapping the shortcut link does the same as doing this by code:
B4X:
Dim p As PhoneIntents
StartActivity(p.OpenBrowser(link))

Then...they told me they use Android 8 :eek:


Is there any way to do it? Can an app even get a list of the shortcuts on the homescreen and launch one?
Webview is out of the question, as they already tried and it breaks the page. Only browser that correctly works is chrome.

Thanks
 

Aegis

Member
No, i dont have the industrial tablet they use.

The different behaviour might be something specific to the version of chrome/android 8 in use, but hard to say.
 
Upvote 0
Top