The code below may help you to get started:

    private static final String[]   mColumnStrings =
    { Browser.BookmarkColumns._ID,
      Browser.BookmarkColumns.TITLE,
      Browser.BookmarkColumns.URL,
      Browser.BookmarkColumns.BOOKMARK,
      Browser.BookmarkColumns.VISITS };

    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.main);
        // Get a cursor with all people
        Cursor c = getContentResolver().query(Browser.BOOKMARKS_URI,
mColumnStrings, null, null, null);
        if(c!=null)
         Log.i("\n\nTest",c.getColumnName(0));

    }

}

On Tue, Apr 8, 2008 at 5:07 AM, peterL <[EMAIL PROTECTED]> wrote:

>
> Hi all,
> How do I access bookmarks created in the web browser?
> I tried this:
>
> Cursor cur =
> getContentResolver().query(android.provider.Browser.BOOKMARKS_URI,
> null,null,null,null);
>
> But the returned cur is always null. Can anyone help please?
> Thanks~
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to