|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.solovyev.android.Android
public final class Android
This class contains static methods for working with some android classes
| Field Summary | |
|---|---|
static String |
LINE_SEPARATOR
|
static String |
TAG
|
| Method Summary | |
|---|---|
static void |
addIntentFlags(android.content.Intent intent,
boolean detached,
android.content.Context context)
Deprecated. |
static void |
enableComponent(android.content.Context context,
Class<?> componentClass,
boolean enable)
|
static int |
getAppVersionCode(android.content.Context context)
|
static int |
getAppVersionCode(android.content.Context context,
String appPackageName)
Method returns version of application identified by it's package name. |
static android.os.Parcelable.Creator<String> |
getStringParcelableCreator()
|
static boolean |
isComponentEnabled(android.content.Context context,
Class<? extends android.content.Context> componentClass)
|
static boolean |
isDebuggable(android.content.Context context)
|
static boolean |
isPhoneModel(DeviceModel phoneModel)
|
static String |
newSubTag(String tag,
String subTag)
|
static String |
newTag(String tag)
|
static String |
saveBitmap(android.graphics.Bitmap bitmap,
String path,
String fileName)
|
static void |
toggleComponent(android.content.Context context,
Class<?> componentClass,
boolean enable)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LINE_SEPARATOR
public static final String TAG
| Method Detail |
|---|
@Nonnull
public static String newTag(@Nonnull
String tag)
@Nonnull
public static String newSubTag(@Nonnull
String tag,
@Nonnull
String subTag)
public static int getAppVersionCode(@Nonnull
android.content.Context context,
@Nonnull
String appPackageName)
throws android.content.pm.PackageManager.NameNotFoundException
context - contextappPackageName - full name of the package of an app, 'com.example.app' for example.
PackageManager.NameNotFoundException - if application is not found
public static int getAppVersionCode(@Nonnull
android.content.Context context)
context - context
public static boolean isPhoneModel(@Nonnull
DeviceModel phoneModel)
public static boolean isDebuggable(@Nonnull
android.content.Context context)
@Nonnull public static android.os.Parcelable.Creator<String> getStringParcelableCreator()
@Deprecated
public static void addIntentFlags(@Nonnull
android.content.Intent intent,
boolean detached,
@Nonnull
android.content.Context context)
@Deprecated
public static void toggleComponent(@Nonnull
android.content.Context context,
@Nonnull
Class<?> componentClass,
boolean enable)
public static void enableComponent(@Nonnull
android.content.Context context,
@Nonnull
Class<?> componentClass,
boolean enable)
public static boolean isComponentEnabled(@Nonnull
android.content.Context context,
@Nonnull
Class<? extends android.content.Context> componentClass)
public static String saveBitmap(@Nonnull
android.graphics.Bitmap bitmap,
@Nonnull
String path,
@Nonnull
String fileName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||