java.lang.Object | ||
android.provider.Browser |
Value | ||||
---|---|---|---|---|
Uri | BOOKMARKS_URI | |||
String[] | HISTORY_PROJECTION | |||
int | HISTORY_PROJECTION_BOOKMARK_INDEX | 4 | 0x00000004 | |
int | HISTORY_PROJECTION_DATE_INDEX | 3 | 0x00000003 | |
int | HISTORY_PROJECTION_FAVICON_INDEX | 6 | 0x00000006 | |
int | HISTORY_PROJECTION_ID_INDEX | 0 | 0x00000000 | |
int | HISTORY_PROJECTION_TITLE_INDEX | 5 | 0x00000005 | |
int | HISTORY_PROJECTION_URL_INDEX | 1 | 0x00000001 | |
int | HISTORY_PROJECTION_VISITS_INDEX | 2 | 0x00000002 | |
String | INITIAL_ZOOM_LEVEL | The name of extra data when starting Browser with ACTION_VIEW or ACTION_SEARCH intent. | "browser.initialZoomLevel" | |
String[] | SEARCHES_PROJECTION | |||
int | SEARCHES_PROJECTION_DATE_INDEX | 2 | 0x00000002 | |
int | SEARCHES_PROJECTION_SEARCH_INDEX | 1 | 0x00000001 | |
Uri | SEARCHES_URI | |||
String[] | TRUNCATE_HISTORY_PROJECTION | |||
int | TRUNCATE_HISTORY_PROJECTION_ID_INDEX | 0 | 0x00000000 | |
int | TRUNCATE_N_OLDEST | 5 | 0x00000005 |
Browser() |
final | static | void | addSearchUrl(ContentResolver cr, String search) | |||
Add a search string to the searches database. | ||||||
final | static | boolean | canClearHistory(ContentResolver cr) | |||
Returns whether there is any history to clear. | ||||||
final | static | void | clearHistory(ContentResolver cr) | |||
Delete all entries from the bookmarks/history table which are not bookmarks. | ||||||
final | static | void | clearSearches(ContentResolver cr) | |||
Remove all searches from the search database. | ||||||
final | static | void | deleteFromHistory(ContentResolver cr, String url) | |||
Remove a specific url from the history database. | ||||||
final | static | void | deleteHistoryTimeFrame(ContentResolver cr, long begin, long end) | |||
Delete all history items from begin to end. | ||||||
final | static | Cursor | getAllBookmarks(ContentResolver cr) | |||
Return a cursor pointing to a list of all the bookmarks. | ||||||
final | static | Cursor | getAllVisitedUrls(ContentResolver cr) | |||
Return a cursor pointing to a list of all visited site urls. | ||||||
final | static | void | requestAllIcons(ContentResolver cr, String where, WebIconDatabase.IconListener listener) | |||
Request all icons from the database. | ||||||
final | static | void | saveBookmark(Context c, String title, String url) | |||
Open the AddBookmark activity to save a bookmark. | ||||||
final | static | void | sendString(Context c, String s) | |||
final | static | void | truncateHistory(ContentResolver cr) | |||
If there are more than MAX_HISTORY_COUNT non-bookmark history items in the bookmark/history table, delete TRUNCATE_N_OLDEST of them. | ||||||
final | static | void | updateVisitedHistory(ContentResolver cr, String url, boolean real) | |||
Update the visited history to acknowledge that a site has been visited. |
The value should be an integer between 0 and 1000. If not set or set to 0, the Browser will use default. If set to 100, the Browser will start with 100%.
cr | The ContentResolver used to access the database. |
---|---|
search | The string to add to the searches database. |
cr | The ContentResolver used to access the database. |
---|
cr | The ContentResolver used to access the database. |
---|
cr | The ContentResolver used to access the database. |
---|
cr | The ContentResolver used to access the database. |
---|---|
url | url to remove. |
cr | The ContentResolver used to access the database. |
---|---|
begin | First date to remove. If -1, all dates before end. Inclusive. |
end | Last date to remove. If -1, all dates after begin. Non-inclusive. |
cr | The ContentResolver used to access the database. |
---|
IllegalStateException |
---|
cr | The ContentResolver used to access the database. |
---|
IllegalStateException |
---|
cr | The ContentResolver used to access the database. |
---|---|
where | Clause to be used to limit the query from the database. Must be an allowable string to be passed into a database query. |
listener | IconListener that gets the icons once they are retrieved. |
c | Context used to launch the AddBookmark activity. |
---|---|
title | Title for the bookmark. Can be null or empty string. |
url | Url for the bookmark. Can be null or empty string. |
cr | The ContentResolver used to access the database. |
---|
cr | The ContentResolver used to access the database. |
---|---|
url | The site being visited. |
real | Whether this is an actual visit, and should be added to the number of visits. |
Copyright 2007 Google Inc. | Build 0.9_r1-98467 - 14 Aug 2008 18:48 |