Wrapper android app for a mobile website that only runs on chrome for android

392 views
Skip to first unread message

Jean-Michel FAYARD

unread,
Feb 8, 2013, 6:29:52 AM2/8/13
to chromium...@chromium.org
Hello,

https://workflowy.com is a web app that allows to "organize your brain" by managing lists of all sort of things.

There is a mobile version of it that works fine in chrome for android, but is broken in various ways in the default browser.

To help the users of workflowy to go mobile, I developped an very simple android app that hopefully will be available on google play.

In MainActivity.onCreate(), it 
- check if chrome is already installed
- if not, display a notice to the user with a button that redirects to google play so that it can install chrome
- if yes, launch the workflowy.com mobile site an chrome

     Intent i = new Intent("android.intent.action.MAIN");

    i.setComponent(ComponentName.unflattenFromString("com.android.chrome/com.android.chrome.Main"));

    i.addCategory("android.intent.category.LAUNCHER");

    i.setData(Uri.parse("http://workflowy.com"));

One minor problem is that if my website is already opened in chrome, it will open in a new tab.

Is there a way to start an intent that will ask chrome to check if workflowy is already opened, and if yes open the existing tab ?


Thanks,


     Jean-Michel 

Edison Nica

unread,
Feb 8, 2013, 10:23:16 AM2/8/13
to jmfa...@gmail.com, chromium...@chromium.org
could you do it in the web page code?

page 1 opened with a keep alive connection
when page 2 is opened, transfer the status to first page, auto close page 2, and refresh page 1

telling the browser to reset the current page seems a really bad practice, I really hope Android does not supports this scenario.

edi


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

Qi Di

unread,
Oct 14, 2015, 10:25:27 PM10/14/15
to Chromium-discuss, jmfa...@gmail.com
Hi, Jean

I think Crosswalk is what you are looking for, which is an web engine based on Chromium&&Blink.

Regards
-Di Qi

在 2013年2月8日星期五 UTC+8下午7:29:52,Jean-Michel FAYARD写道:
Reply all
Reply to author
Forward
0 new messages