IT. Expert System.

Android Reference



Class Settings.Bookmarks

  • All Implemented Interfaces:
    Enclosing class:

    public static final class Settings.Bookmarks
    extends Object
    implements BaseColumns
    User-defined bookmarks and shortcuts. The target of each bookmark is an Intent URL, allowing it to be either a web page or a particular application activity.
    • Field Detail


        public static final Uri CONTENT_URI
        The content:// style URL for this table
      • TITLE

        public static final String TITLE
        Descriptive name of the bookmark that can be displayed to the user. If this is empty, the title should be resolved at display time (use getTitle(Context, Cursor) any time you want to display the title of a bookmark.)

        Type: TEXT

        See Also:
        Constant Field Values
      • FOLDER

        public static final String FOLDER
        Arbitrary string (displayed to the user) that allows bookmarks to be organized into categories. There are some special names for standard folders, which all start with '@'. The label displayed for the folder changes with the locale (via getLabelForFolder(android.content.res.Resources, java.lang.String)) but the folder name does not change so you can consistently query for the folder regardless of the current locale.

        Type: TEXT

        See Also:
        Constant Field Values
      • SHORTCUT

        public static final String SHORTCUT
        Optional shortcut character associated with this bookmark.

        Type: INTEGER

        See Also:
        Constant Field Values
      • ORDERING

        public static final String ORDERING
        The order in which the bookmark should be displayed

        Type: INTEGER

        See Also:
        Constant Field Values
    • Constructor Detail

      • Settings.Bookmarks

        public Settings.Bookmarks()
    • Method Detail

      • getIntentForShortcut

        public static Intent getIntentForShortcut(ContentResolver cr,
                                  char shortcut)
        Convenience function to retrieve the bookmarked Intent for a particular shortcut key.
        cr - The ContentResolver to query.
        shortcut - The shortcut key.
        Intent The bookmarked URL, or null if there is no bookmark matching the given shortcut.
      • add

        public static Uri add(ContentResolver cr,
              Intent intent,
              String title,
              String folder,
              char shortcut,
              int ordering)
        Add a new bookmark to the system.
        cr - The ContentResolver to query.
        intent - The desired target of the bookmark.
        title - Bookmark title that is shown to the user; null if none or it should be resolved to the intent's title.
        folder - Folder in which to place the bookmark; null if none.
        shortcut - Shortcut that will invoke the bookmark; 0 if none. If this is non-zero and there is an existing bookmark entry with this same shortcut, then that existing shortcut is cleared (the bookmark is not removed).
        The unique content URL for the new bookmark entry.
      • getLabelForFolder

        public static CharSequence getLabelForFolder(Resources r,
                                     String folder)
        Return the folder name as it should be displayed to the user. This takes care of localizing special folders.
        r - Resources object for current locale; only need access to system resources.
        folder - The value found in the FOLDER column.
        CharSequence The label for this folder that should be shown to the user.
      • getTitle

        public static CharSequence getTitle(Context context,
                            Cursor cursor)
        Return the title as it should be displayed to the user. This takes care of localizing bookmarks that point to activities.
        context - A context.
        cursor - A cursor pointing to the row whose title should be returned. The cursor must contain at least the TITLE and INTENT columns.
        A title that is localized and can be displayed to the user, or the empty string if one could not be found.


Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)





Java Script








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

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: 486 / 158863519. Delta: 0.03535 с