1

I'm creating bookmark using the similar to the code as below

ContentValues values = new ContentValues();
values.put(BookmarkColumns.BOOKMARK, "1");
values.put(BookmarkColumns.CREATED, "1311170108");
values.put(BookmarkColumns.DATE, "1311170708"); 
values.put(BookmarkColumns.TITLE, "XDA");
values.put(BookmarkColumns.URL, "http://test.com");
values.put(BookmarkColumns.VISITS, "1");
getContentResolver().insert(Browser.BOOKMARKS_URI, values);

Although this code works very well on emulator and devices like HTC Hero. But when my app try to create bookmark on Samsung Galaxy Gio device , it is not visible in the default browser. Although call to Browser.getAllBookmarks() returns all the bookmarks created by my application but non are visible in default browsers bookmark view.

Samsung device looks like store bookmarks in folder structure where as other Android device store them directly. Unfortunately current bookmark/browser api does not look like supports for folders in bookmarks.

What could be work around to make bookmark visible on samsung devices also ?

Thanks,

Tushar

1 Answer 1

0

Call android.provider.Browser.saveBookmark()

1
  • This will launch the bookmark edit activity. I need to update bookmark without user action.
    – Tushar
    Aug 17, 2011 at 14:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.