|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.provider.Settings.Bookmarks
public static final class Settings.Bookmarks
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 Summary | |
|---|---|
static Uri |
CONTENT_URI
The content:// style URL for this table |
static String |
FOLDER
Arbitrary string (displayed to the user) that allows bookmarks to be organized into categories. |
static String |
ID
The row ID. |
static String |
INTENT
The Intent URL of the bookmark, describing what it points to. |
static String |
ORDERING
The order in which the bookmark should be displayed |
static String |
SHORTCUT
Optional shortcut character associated with this bookmark. |
static String |
TITLE
Descriptive name of the bookmark that can be displayed to the user. |
| Fields inherited from interface android.provider.BaseColumns |
|---|
_COUNT, _ID |
| Constructor Summary | |
|---|---|
Settings.Bookmarks()
|
|
| Method Summary | |
|---|---|
static Uri |
add(ContentResolver cr,
Intent intent,
String title,
String folder,
char shortcut,
int ordering)
Add a new bookmark to the system. |
static Intent |
getIntentForShortcut(ContentResolver cr,
char shortcut)
Convenience function to retrieve the bookmarked Intent for a particular shortcut key. |
static CharSequence |
labelForFolder(Resources r,
String folder)
Return the folder name as it should be displayed to the user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Uri CONTENT_URI
public static final String ID
Type: INTEGER
public static final String TITLE
Type: TEXT
public static final String FOLDER
labelForFolder(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
public static final String INTENT
Intent.getIntent(java.lang.String) to create
an Intent that can be launched.
Type: TEXT
public static final String SHORTCUT
Type: INTEGER
public static final String ORDERING
Type: INTEGER
| Constructor Detail |
|---|
public Settings.Bookmarks()
| Method Detail |
|---|
public static Intent getIntentForShortcut(ContentResolver cr,
char shortcut)
cr - The ContentResolver to query.shortcut - The shortcut key.
public static Uri add(ContentResolver cr,
Intent intent,
String title,
String folder,
char shortcut,
int ordering)
cr - The ContentResolver to query.intent - The desired target of the bookmark.title - Bookmark title that is shown to the user; null if none.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).
public static CharSequence labelForFolder(Resources r,
String folder)
r - Resources object for current locale; only need access to
system resources.folder - The value found in the FOLDER column.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||