IT. Expert System.

Android Reference

Settings.Bookmarks


android.provider

Class Settings.Bookmarks

  • All Implemented Interfaces:
    BaseColumns
    Enclosing class:
    Settings


    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

      • CONTENT_URI

        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.
        Parameters:
        cr - The ContentResolver to query.
        shortcut - The shortcut key.
        Returns:
        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.
        Parameters:
        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).
        Returns:
        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.
        Parameters:
        r - Resources object for current locale; only need access to system resources.
        folder - The value found in the FOLDER column.
        Returns:
        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.
        Parameters:
        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.
        Returns:
        A title that is localized and can be displayed to the user, or the empty string if one could not be found.


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: 669 / 158677603. Delta: 0.02981 с