如何从网页在主屏幕上添加android书签? [英] How to add android bookmark on homescreen from web page?

查看:23
本文介绍了如何从网页在主屏幕上添加android书签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Android 网络应用程序的新手..

I'm new to web applications for Android..

如何通过单击按钮使用 Javascript 从网页在主屏幕上添加书签?

How can you add a bookmark on the home screen from a web page using Javascript from the click of a button?

如果我们为用户提供一种简单的方法来为页面添加书签,他们就会表现出对添加书签的兴趣.这是我的项目的要求之一.

If we make an easy way for users to bookmark pages, they will show some interest in bookmarking them. This is one of the requirement for my projects.

如何做到这一点?

推荐答案

有些人在这里回答似乎不明白你想要移动设备,而不是 IE、Firefox 等.他们似乎也不太了解好吧,您说的是网站",而不是移动应用程序".但是,我相信我已经正确阅读了您的问题.

Some of the people answering here seem to not understand that you want something for mobile, not IE, Firefox, etc. They also don't seem to read very well where you said "website", not "mobile app". However, I believe I have read your question properly.

很有可能您也希望在 iPhone 上使用它,所以我也会在 iPhone 和 Android 上回答这个问题.

There's extremely high odds that you'll probably also want this for iPhone, so I'll answer this for iPhone and Android as well.

对于 iPhone,就像使用这个脚本一样简单:

For iPhone, it's as simple as using this script:

http://code.google.com/p/mobile-bookmark-bubble/

不幸的是,对于 Android,它并不是那么漂亮.您必须制作一个按钮或超链接,以重定向到您网站上的说明页面.说明将告诉网络访问者执行设置 > 更多 > 添加快捷方式到主页"并希望他们明白".

For Android, it's not so pretty, unfortunately. You'll have to make a button or hyperlink that redirects to an instructions page on your site. The instructions will tell web visitors to do "Settings > More > Add Shortcut to Home" and hope they "get it".

Android 的一个选项是你可以 fork mobile-bookmark-bubble,让它在没有底部三角形的页面底部加载,并让它读取,点击设置按钮 > 更多 > 添加快捷方式到主页".同样,您可能希望将设置"按钮外观的 2 条形图标放在设置按钮"旁边.

One option for Android is that you can fork mobile-bookmark-bubble, make it load at the bottom of the page without the bottom triangle, and make it read, "Click the Settings button > More > Add Shortcut to Home". As well, you might want to put the 2 bars icon of what the Settings button looks like right next to "Settings button".

至于如何自定义创建的图标,我仍在研究中,当我发现时会更新此答案.

As for how to customize the icon that gets created, I'm still researching that and will update this answer when I find out.

这篇关于如何从网页在主屏幕上添加android书签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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