我开发移动Web应用程序。目前我有这个片段的jQuery的code。如果应用程序正在运行全屏它检查:
如果(!window.navigator.standalone)
{
$('#内容)之前('< DIV CLASS =通知>向享受移动体验发挥到极致,请点击下面的工具栏上的箭头按钮,选择< B>添加到主屏幕< / B&gt ;,然后从那里启动它< / DIV>');
}
我有几个问题:
确实 window.navigator.standalone
Android手机上的工作?
什么是流程为用户添加一个移动Web应用程序,以他们家的屏幕?我试图寻找浏览器的截图,但没有发现任何可靠的消息来源。
是否有一个相当于iPhone的苹果触摸图标的链接元素?找到的answer这这里。
解决方案 一个Web应用程序不能直接在Android主屏幕上运行。对于它需要一些其他的自定义主屏幕。现在有两家公司谁是致力于提供一个平台,Android的运行Web应用程序的独立。
Obigo WRT 歌剧在这里你可以让你的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:
Doeswindow.navigator.standalone
work on Android phones?
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.
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 Operawhere 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.
上一篇:Android的Memoryleak在codeAndroid、Memoryleak、code
下一篇:安卓了java.lang.RuntimeException:无法实例活动ComponentInfo:显示java.lang.NullPointerException实例、lang、java、Runti