public final class Shared extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_PICK_COPY_DESTINATION
Intent action name to pick a copy destination.
|
static boolean |
DEBUG |
static String |
EXTRA_BENCHMARK
Extra for an Intent for enabling performance benchmark.
|
static String |
EXTRA_DIRECTORY_COPY
Extra boolean flag for
ACTION_PICK_COPY_DESTINATION , which
specifies if the destination directory needs to create new directory or not. |
static String |
EXTRA_DOC
Extra flag used to store document of DocumentInfo type in the bundle.
|
static String |
EXTRA_IGNORE_STATE
Extra flag used to store DirectoryFragment's ignore state of boolean type in the bundle.
|
static String |
EXTRA_PRODUCTIVITY_MODE
Extra flag allowing app to be opened in productivity mode (less downloadsy).
|
static String |
EXTRA_QUERY
Extra flag used to store query of type String in the bundle.
|
static String |
EXTRA_ROOT
Extra flag used to store root of type RootInfo in the bundle.
|
static String |
EXTRA_SEARCH_MODE
Extra flag used to store DirectoryFragment's search mode of boolean type in the bundle.
|
static String |
EXTRA_SELECTION
Extra flag used to store DirectoryFragment's selection of Selection type in the bundle.
|
static String |
EXTRA_STACK
Extra flag used to store the current stack so user opens in right spot.
|
static String |
EXTRA_STATE
Extra flag used to store state of type State in the bundle.
|
static String |
EXTRA_TYPE
Extra flag used to store type of DirectoryFragment's type ResultType type in the bundle.
|
static int |
MAX_DOCS_IN_INTENT
Maximum number of items in a Binder transaction packet.
|
static String |
TAG |
Constructor and Description |
---|
Shared() |
Modifier and Type | Method and Description |
---|---|
static <T> ArrayList<T> |
asArrayList(List<T> list)
A convenient way to transform any list into a (parcelable) ArrayList.
|
static int |
compareToIgnoreCaseNullable(String lhs,
String rhs)
Compare two strings against each other using system default collator in a
case-insensitive mode.
|
static void |
ensureKeyboardPresent(Context context,
AlertDialog dialog) |
static String |
formatTime(Context context,
long when) |
static String |
getQuantityString(Context context,
int resourceId,
int quantity)
Generates a formatted quantity string.
|
static boolean |
isHardwareKeyboardAvailable(Context context) |
static boolean |
shouldShowDeviceRoot(Context context,
Intent intent) |
static boolean |
shouldShowDocumentsRoot(Context context,
Intent intent) |
static boolean |
shouldShowFancyFeatures(Activity activity)
Returns true if device root should be shown.
|
public static final String TAG
public static final boolean DEBUG
public static final String ACTION_PICK_COPY_DESTINATION
public static final String EXTRA_PRODUCTIVITY_MODE
public static final String EXTRA_DIRECTORY_COPY
ACTION_PICK_COPY_DESTINATION
, which
specifies if the destination directory needs to create new directory or not.public static final String EXTRA_STACK
public static final String EXTRA_QUERY
public static final String EXTRA_STATE
public static final String EXTRA_TYPE
public static final String EXTRA_ROOT
public static final String EXTRA_DOC
public static final String EXTRA_SELECTION
public static final String EXTRA_SEARCH_MODE
public static final String EXTRA_IGNORE_STATE
public static final String EXTRA_BENCHMARK
public static final int MAX_DOCS_IN_INTENT
public static final String getQuantityString(Context context, int resourceId, int quantity)
public static <T> ArrayList<T> asArrayList(List<T> list)
list
.public static int compareToIgnoreCaseNullable(String lhs, String rhs)
DIR_PREFIX
before other items.public static boolean isHardwareKeyboardAvailable(Context context)
public static void ensureKeyboardPresent(Context context, AlertDialog dialog)
public static boolean shouldShowDocumentsRoot(Context context, Intent intent)
public static boolean shouldShowFancyFeatures(Activity activity)