java.lang.Object | |
↳ | android.provider.Browser |
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Browser.BookmarkColumns | |||||||||||
Browser.SearchColumns |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Uri | BOOKMARKS_URI | ||||||||||
String | EXTRA_APPLICATION_ID | The name of the extra data when starting the Browser from another application. | |||||||||
String[] | HISTORY_PROJECTION | ||||||||||
int | HISTORY_PROJECTION_BOOKMARK_INDEX | ||||||||||
int | HISTORY_PROJECTION_DATE_INDEX | ||||||||||
int | HISTORY_PROJECTION_FAVICON_INDEX | ||||||||||
int | HISTORY_PROJECTION_ID_INDEX | ||||||||||
int | HISTORY_PROJECTION_TITLE_INDEX | ||||||||||
int | HISTORY_PROJECTION_URL_INDEX | ||||||||||
int | HISTORY_PROJECTION_VISITS_INDEX | ||||||||||
String | INITIAL_ZOOM_LEVEL | The name of extra data when starting Browser with ACTION_VIEW or ACTION_SEARCH intent. | |||||||||
String[] | SEARCHES_PROJECTION | ||||||||||
int | SEARCHES_PROJECTION_DATE_INDEX | ||||||||||
int | SEARCHES_PROJECTION_SEARCH_INDEX | ||||||||||
Uri | SEARCHES_URI | ||||||||||
String[] | TRUNCATE_HISTORY_PROJECTION | ||||||||||
int | TRUNCATE_HISTORY_PROJECTION_ID_INDEX | ||||||||||
int | TRUNCATE_N_OLDEST |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a search string to the searches database.
| |||||||||||
Returns whether there is any history to clear.
| |||||||||||
Delete all entries from the bookmarks/history table which are
not bookmarks.
| |||||||||||
Remove all searches from the search database.
| |||||||||||
Remove a specific url from the history database.
| |||||||||||
Delete all history items from begin to end.
| |||||||||||
Return a cursor pointing to a list of all the bookmarks.
| |||||||||||
Return a cursor pointing to a list of all visited site urls.
| |||||||||||
Request all icons from the database.
| |||||||||||
Open the AddBookmark activity to save a bookmark.
| |||||||||||
If there are more than MAX_HISTORY_COUNT non-bookmark history
items in the bookmark/history table, delete TRUNCATE_N_OLDEST
of them.
| |||||||||||
Update the visited history to acknowledge that a site has been
visited.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
The name of the extra data when starting the Browser from another application.
The value is a unique identification string that will be used to indentify the calling application. The Browser will attempt to reuse the same window each time the application launches the Browser with the same identifier.
The name of extra data when starting Browser with ACTION_VIEW or ACTION_SEARCH intent.
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%.
Add a search string to the searches database.
cr | The ContentResolver used to access the database. |
---|---|
search | The string to add to the searches database. |
Returns whether there is any history to clear.
cr | The ContentResolver used to access the database. |
---|
Delete all entries from the bookmarks/history table which are not bookmarks. Also set all visited bookmarks to unvisited.
cr | The ContentResolver used to access the database. |
---|
Remove all searches from the search database.
cr | The ContentResolver used to access the database. |
---|
Remove a specific url from the history database.
cr | The ContentResolver used to access the database. |
---|---|
url | url to remove. |
Delete all history items from begin to end.
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. |
Return a cursor pointing to a list of all the bookmarks.
cr | The ContentResolver used to access the database. |
---|
IllegalStateException |
---|
Return a cursor pointing to a list of all visited site urls.
cr | The ContentResolver used to access the database. |
---|
IllegalStateException |
---|
Request all icons from the database.
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. |
Open the AddBookmark activity to save a bookmark. Launch with and/or url, which can be edited by the user before saving.
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. |
If there are more than MAX_HISTORY_COUNT non-bookmark history items in the bookmark/history table, delete TRUNCATE_N_OLDEST of them. This is used to keep our history table to a reasonable size. Note: it does not prune bookmarks. If the user wants 1000 bookmarks, the user gets 1000 bookmarks.
cr | The ContentResolver used to access the database. |
---|
Update the visited history to acknowledge that a site has been visited.
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. |