Full screen chromium in android

1,915 views
Skip to first unread message

Himanshu Srivastava

unread,
Mar 3, 2016, 3:45:35 AM3/3/16
to Chromium-discuss
Hi ,

How to launch chromium in android in full screen by default.
Is there any flag I can update ?


Regards
Himanshu

PhistucK

unread,
Mar 3, 2016, 3:47:48 AM3/3/16
to Himanshu Srivastava, Chromium-discuss
If you add a page to your home screen, it will open in full screen mode when you tap on the home screen icon.


PhistucK

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.

Anton Vayvod

unread,
Mar 3, 2016, 12:28:42 PM3/3/16
to PhistucK Productions, Himanshu Srivastava, Chromium-discuss
On Thu, Mar 3, 2016 at 12:46 AM, PhistucK <phis...@gmail.com> wrote:
If you add a page to your home screen, it will open in full screen mode when you tap on the home screen icon.


PhistucK

On Thu, Mar 3, 2016 at 10:45 AM, Himanshu Srivastava <28him...@gmail.com> wrote:
Hi ,

How to launch chromium in android in full screen by default.
Is there any flag I can update ?


There's no flag for that on Android AFAIK. You can try using the WebappLauncherActivity (which is used by the page shortcuts).
You should be able to launch the activity via adb with something like:

adb shell am start -n com.android.chrome/.webapps.WebappManager.ACTION_START_WEBAPP "url"

If you need anything more specific, you can add your own activity inheriting from FullscreenActivity which is the base for WebappActivity.

What are you trying to achieve altogether?

Himanshu Srivastava

unread,
Mar 3, 2016, 11:12:32 PM3/3/16
to Anton Vayvod, PhistucK Productions, Chromium-discuss
Hi ,

Thank You .
I build the chromium source code and installed the generated apk on google box ( android 5.1 ).
I want that when I click on chromium apk then browser window should open in full screen with a specific URL given by me ( e.g www.facebook.com).
On launch of chromium address bar or URL bar should hide automatically.


Regards
Himanshu


Anton Vayvod

unread,
Mar 4, 2016, 7:41:51 PM3/4/16
to Himanshu Srivastava, PhistucK Productions, Chromium-discuss
Do you mean Android TV (e.g. Nexus Player) when you say Google Box?
Why don't you just build your own app using Android WebView?

peter hoth2

unread,
Aug 21, 2016, 1:34:46 AM8/21/16
to Chromium-discuss, phis...@gmail.com, 28him...@gmail.com, ava...@chromium.org
Hi Himanshu,

I have added a chrome short cut to my home screen with the name "test". It points to a test site http://192.168.1.8/index.html. I tried to launch it using the command you posted earlier:

adb shell am start -n com.android.chrome/.webapps.WebappManager.ACTION_START_WEBAPP "http://192.168.1.8/index.html"

it generates the following:

Starting: Intent { act=android.intent.action.VIEW dat=http://192.168.1.8/index.html cmp=com.android.chrome/.webapps.WebappManager.ACTION_START_WEBAPP }
Error type 3
Error: Activity class {com.android.chrome/com.android.chrome.webapps.WebappManager.ACTION_START_WEBAPP} does not exist.

I am using chrome 52.0.2743.98 with Android 4.4.2.

Please advise.

thanks.

Reply all
Reply to author
Forward
0 new messages