IT. Expert System.

Android Reference

Browser


android.provider

Class Browser



  • public class Browser
    extends Object
    • Field Detail

      • BOOKMARKS_URI

        public static final Uri BOOKMARKS_URI
        A table containing both bookmarks and history items. The columns of the table are defined in Browser.BookmarkColumns. Reading this table requires the android.Manifest.permission#READ_HISTORY_BOOKMARKS permission and writing to it requires the android.Manifest.permission#WRITE_HISTORY_BOOKMARKS permission.
      • INITIAL_ZOOM_LEVEL

        public static final String INITIAL_ZOOM_LEVEL
        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%.

        See Also:
        Constant Field Values
      • EXTRA_APPLICATION_ID

        public static final String EXTRA_APPLICATION_ID
        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 identify the calling application. The Browser will attempt to reuse the same window each time the application launches the Browser with the same identifier.

        See Also:
        Constant Field Values
      • EXTRA_HEADERS

        public static final String EXTRA_HEADERS
        The name of the extra data in the VIEW intent. The data are key/value pairs in the format of Bundle. They will be sent in the HTTP request headers for the provided url. The keys can't be the standard HTTP headers as they are set by the WebView. The url's schema must be http(s).

        See Also:
        Constant Field Values
      • HISTORY_PROJECTION

        public static final String[] HISTORY_PROJECTION
      • HISTORY_PROJECTION_ID_INDEX

        public static final int HISTORY_PROJECTION_ID_INDEX
        See Also:
        Constant Field Values
      • HISTORY_PROJECTION_URL_INDEX

        public static final int HISTORY_PROJECTION_URL_INDEX
        See Also:
        Constant Field Values
      • HISTORY_PROJECTION_VISITS_INDEX

        public static final int HISTORY_PROJECTION_VISITS_INDEX
        See Also:
        Constant Field Values
      • HISTORY_PROJECTION_DATE_INDEX

        public static final int HISTORY_PROJECTION_DATE_INDEX
        See Also:
        Constant Field Values
      • HISTORY_PROJECTION_BOOKMARK_INDEX

        public static final int HISTORY_PROJECTION_BOOKMARK_INDEX
        See Also:
        Constant Field Values
      • HISTORY_PROJECTION_TITLE_INDEX

        public static final int HISTORY_PROJECTION_TITLE_INDEX
        See Also:
        Constant Field Values
      • HISTORY_PROJECTION_FAVICON_INDEX

        public static final int HISTORY_PROJECTION_FAVICON_INDEX
        See Also:
        Constant Field Values
      • HISTORY_PROJECTION_THUMBNAIL_INDEX

        public static final int HISTORY_PROJECTION_THUMBNAIL_INDEX
        See Also:
        Constant Field Values
      • HISTORY_PROJECTION_TOUCH_ICON_INDEX

        public static final int HISTORY_PROJECTION_TOUCH_ICON_INDEX
        See Also:
        Constant Field Values
      • TRUNCATE_HISTORY_PROJECTION

        public static final String[] TRUNCATE_HISTORY_PROJECTION
      • TRUNCATE_HISTORY_PROJECTION_ID_INDEX

        public static final int TRUNCATE_HISTORY_PROJECTION_ID_INDEX
        See Also:
        Constant Field Values
      • SEARCHES_URI

        public static final Uri SEARCHES_URI
        A table containing a log of browser searches. The columns of the table are defined in Browser.SearchColumns. Reading this table requires the android.Manifest.permission#READ_HISTORY_BOOKMARKS permission and writing to it requires the android.Manifest.permission#WRITE_HISTORY_BOOKMARKS permission.
      • SEARCHES_PROJECTION_SEARCH_INDEX

        public static final int SEARCHES_PROJECTION_SEARCH_INDEX
        See Also:
        Constant Field Values
      • SEARCHES_PROJECTION_DATE_INDEX

        public static final int SEARCHES_PROJECTION_DATE_INDEX
        See Also:
        Constant Field Values
      • EXTRA_CREATE_NEW_TAB

        public static final String EXTRA_CREATE_NEW_TAB
        Boolean extra passed along with an Intent to a browser, specifying that a new tab be created. Overrides EXTRA_APPLICATION_ID; if both are set, a new tab will be used, rather than using the same one.
        See Also:
        Constant Field Values
      • EXTRA_SHARE_SCREENSHOT

        public static final String EXTRA_SHARE_SCREENSHOT
        Stores a Bitmap extra in an Intent representing the screenshot of a page to share. When receiving an Intent.ACTION_SEND from the Browser, use this to access the screenshot.
        See Also:
        Constant Field Values
      • EXTRA_SHARE_FAVICON

        public static final String EXTRA_SHARE_FAVICON
        Stores a Bitmap extra in an Intent representing the favicon of a page to share. When receiving an Intent.ACTION_SEND from the Browser, use this to access the favicon.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Browser

        public Browser()
    • Method Detail

      • saveBookmark

        public static final void saveBookmark(Context c,
                        String title,
                        String url)
        Open an activity to save a bookmark. Launch with a title and/or a url, both of which can be edited by the user before saving.
        Parameters:
        c - Context used to launch the activity to add a bookmark.
        title - Title for the bookmark. Can be null or empty string.
        url - Url for the bookmark. Can be null or empty string.
      • sendString

        public static final void sendString(Context context,
                      String string)
        Sends the given string using an Intent with Intent.ACTION_SEND and a mime type of text/plain. The string is put into Intent.EXTRA_TEXT.
        Parameters:
        context - the context used to start the activity
        string - the string to send
      • sendString

        public static final void sendString(Context c,
                      String stringToSend,
                      String chooserDialogTitle)
        Find an application to handle the given string and, if found, invoke it with the given string as a parameter.
        Parameters:
        c - Context used to launch the new activity.
        stringToSend - The string to be handled.
        chooserDialogTitle - The title of the dialog that allows the user to select between multiple applications that are all capable of handling the string.
      • updateVisitedHistory

        public static final void updateVisitedHistory(ContentResolver cr,
                                String url,
                                boolean real)
        Update the visited history to acknowledge that a site has been visited. Requires android.Manifest.permission#READ_HISTORY_BOOKMARKS Requires android.Manifest.permission#WRITE_HISTORY_BOOKMARKS
        Parameters:
        cr - The ContentResolver used to access the database.
        url - The site being visited.
        real - If true, this is an actual visit, and should add to the number of visits. If false, the user entered it manually.
      • getVisitedHistory

        public static final String[] getVisitedHistory(ContentResolver cr)
        Returns all the URLs in the history. Requires android.Manifest.permission#READ_HISTORY_BOOKMARKS
        Parameters:
        cr - The ContentResolver used to access the database.
      • truncateHistory

        public static final 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. 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. Requires android.Manifest.permission#READ_HISTORY_BOOKMARKS Requires android.Manifest.permission#WRITE_HISTORY_BOOKMARKS
        Parameters:
        cr - The ContentResolver used to access the database.
      • canClearHistory

        public static final boolean canClearHistory(ContentResolver cr)
        Returns whether there is any history to clear. Requires android.Manifest.permission#READ_HISTORY_BOOKMARKS
        Parameters:
        cr - The ContentResolver used to access the database.
        Returns:
        boolean True if the history can be cleared.
      • clearHistory

        public static final void clearHistory(ContentResolver cr)
        Delete all entries from the bookmarks/history table which are not bookmarks. Also set all visited bookmarks to unvisited. Requires android.Manifest.permission#WRITE_HISTORY_BOOKMARKS
        Parameters:
        cr - The ContentResolver used to access the database.
      • deleteHistoryTimeFrame

        public static final void deleteHistoryTimeFrame(ContentResolver cr,
                                  long begin,
                                  long end)
        Delete all history items from begin to end. Requires android.Manifest.permission#WRITE_HISTORY_BOOKMARKS
        Parameters:
        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.
      • deleteFromHistory

        public static final void deleteFromHistory(ContentResolver cr,
                             String url)
        Remove a specific url from the history database. Requires android.Manifest.permission#WRITE_HISTORY_BOOKMARKS
        Parameters:
        cr - The ContentResolver used to access the database.
        url - url to remove.
      • addSearchUrl

        public static final void addSearchUrl(ContentResolver cr,
                        String search)
        Add a search string to the searches database. Requires android.Manifest.permission#READ_HISTORY_BOOKMARKS Requires android.Manifest.permission#WRITE_HISTORY_BOOKMARKS
        Parameters:
        cr - The ContentResolver used to access the database.
        search - The string to add to the searches database.
      • clearSearches

        public static final void clearSearches(ContentResolver cr)
        Remove all searches from the search database. Requires android.Manifest.permission#WRITE_HISTORY_BOOKMARKS
        Parameters:
        cr - The ContentResolver used to access the database.
      • requestAllIcons

        public static final void requestAllIcons(ContentResolver cr,
                           String where,
                           WebIconDatabase.IconListener listener)
        Request all icons from the database. This call must either be called in the main thread or have had Looper.prepare() invoked in the calling thread. Requires android.Manifest.permission#READ_HISTORY_BOOKMARKS
        Parameters:
        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.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1468 / 158768840. Delta: 0.04114 с