iPhone的&QUOT安卓相当于;添加到主屏幕"? [英] Android equivalent of the iPhone's "Add to Home Screen"?

查看:146
本文介绍了iPhone的&QUOT安卓相当于;添加到主屏幕"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发移动Web应用程序。目前我有这个片段的jQuery的code。如果应用程序正在运行全屏它检查:

 如果(!window.navigator.standalone)
{
    $('#内容)之前('< D​​IV CLASS =通知>向享受移动体验发挥到极致,请点击下面的工具栏上的箭头按钮,选择< B>添加到主屏幕< / B&gt ;,然后从那里启动它< / DIV>');
}
 

我有几个问题:

  1. 确实 window.navigator.standalone Android手机上的工作?
  2. 什么是流程为用户添加一个移动Web应用程序,以他们家的屏幕?我试图寻找浏览器的截图,但没有发现任何可靠的消息来源。
  3. <打击>是否有一个相当于iPhone的苹果触摸图标的链接元素?找到的<一个href="http://stackoverflow.com/questions/1951381/configuring-android-web-applications/1951455#1951455">answer这这里。
解决方案

一个Web应用程序不能直接在Android主屏幕上运行。对于它需要一些其他的自定义主屏幕。现在有两家公司谁是致力于提供一个平台,Android的运行Web应用程序的独立。

在这里你可以让你的web应用程序作为窗口小部件,然后它会在运行时上运行。 目前obigo所提供的自定义主屏幕。其中,Opera将在应用程序中运行的Web部件。

I am developing a mobile web app. Currently I have this snippet of jQuery code which checks if the app is running full screen:

if ( !window.navigator.standalone )
{
    $('#content').before( '<div class="notice">To enjoy the mobile experience to its fullest, tap the arrow button on the toolbar below, choose <b>Add to Home Screen</b>, then launch it from there.</div>' );
}

I have a few questions:

  1. Does window.navigator.standalone work on Android phones?
  2. What is the process for a user to add a mobile web app to their home screen? I tried looking for browser screenshots but didn't find any reliable sources.
  3. Is there an equivalent to iPhone's "apple-touch-icon" link element? Found the answer to this here.

解决方案

A web application can't run directly on android home screen. for that it need some other customized home screen. right now there are two companies who are working to provide a platform from android to run web application standalone.

  • Obigo WRT
  • Opera

where you can make your web application as a widget and then it will run in that runtime. currently obigo have provided the customized home screen. where opera will run web widget within an application.

这篇关于iPhone的&QUOT安卓相当于;添加到主屏幕&QUOT;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆