Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add android bookmark on homescreen from web page?

I'm new to web applications for Android..

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.

How can this be done?

like image 788
manidhar mulaparthi Avatar asked Feb 27 '11 07:02

manidhar mulaparthi


People also ask

How do I add a webpage shortcut to my home screen?

Android. Launch Chrome for Android and open the website or web page you want to pin to your home screen. Tap the menu button and tap Add to homescreen.


2 Answers

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.

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.

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

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

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".

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.

like image 192
Volomike Avatar answered Nov 06 '22 00:11

Volomike


Here is a possible workaround, and while it isn't exactly what you want, I think it is the easiest solution as I'm highly skeptical that android allows web pages to automatically issue intents to a device, as this would be a potential security problem. Someone please correct me if I'm wrong

I recommend that you create an app that is simply a wrapper around a bookmark. When the user clicks on your app, your app creates an intent that simply opens the device's default web browser to your page. While this will require the users install a app it has a few advantages over a plain bookmark. You will be able to track how many people have your app/bookmark installed, how often they use it etc. You can also provide a nice looking icon instead of using the stock "bookmark" icon.

Upload the app to the market as a free app and place a "bookmark this" link on your webpage that simply directs the user to download your free app.

like image 22
slayton Avatar answered Nov 05 '22 23:11

slayton