收录日期:2020/12/05 22:12:09 时间:2010-09-08 13:04:43 标签:android,binding,bookmarks

Does anybody know if Internet Bookmark URLs are accessable from Android applications? Any way to bind something like a spinner to them?

Thanks.

Update: To add to my question: I've tried this code but getting just blanks back in my spinner. I confirmed I have bookmarks in my emulator:

private Cursor cbookmarks;

SpinnerBM = (Spinner) findViewById(R.id.Spinner); cbookmarks = Browser.getAllBookmarks(getContentResolver()); SimpleCursorAdapter ABM = new SimpleCursorAdapter(this,android.R.layout.simple_spinner_item, cbookmarks,new String[] {android.provider.Browser.BookmarkColumns.URL},new int[]{R.id.Spinner}); ABM.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); SpinnerBM.setAdapter(ABM);