Home screen web application (iphone style)?

It’s just interesting, when I had an iphone, I was able to create a web application and then put some code in it so that when I click “add to desktop” the icon was placed on the main screen and when the user clicked it the web application will work in full screen mode (without a web navigation bar), so it just looks like a normal application (although it will only work on the Internet). I can still do it using an android or do I need to encode a whole application to do this? Sorry if this is a bit unclear. Thanks Adam.

What I used for iphone:

<meta name="viewport" content="user-scalable=no, width=device-width" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="apple-touch-startup-image" href="images/myCustomStartupGraphic.png" />
+5
source share
4 answers

, . , WebView - URL-, Play .

WebView webView = findViewById(R.id.webView);
webView.loadUrl("http://awesome.website.com");

HTTP- Android.

+1

Chrome Beta Android. , Chrome M31 Beta. , Chrome Android. Chrome Beta, Play Store, Google Chrome. Chrome Beta Play.

, : https://developers.google.com/chrome/mobile/docs/installtohomescreen

, , :

  • <head>:

    <meta name="mobile-web-app-capable" content="yes">

  • <head> :

    <link rel="shortcut icon" sizes="114x114" href="views/img/icon114x114.png" />

, , , 114114. , 512x512 , iOS, Chrome, sizes="512x512", sizes="114x114", <link>. Google - 196x196.

- , Google . https://developers.google.com/chrome-developer-tools/docs/remote-debugging

+1

- , . , , . , , .

0

, , , , - Launcher. "" - URL-, , URL-, , Chrome, Firefox, Opera, Dolphin - . , "" - .

You will need to use PhoneGap / Cordova to create a wrapper application, but understand that the embedded web view is not as complete as a full-featured browser application, so testing is always recommended.

0
source

All Articles