|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.prefs.AndroidLocation
public final class AndroidLocation
Manages the location of the android files (including emulator files, ddms config, debug keystore)
Nested Class Summary | |
---|---|
static class |
AndroidLocation.AndroidLocationException
Throw when the location of the android folder couldn't be found. |
static class |
AndroidLocation.EnvVar
Enum describing which variables to check and whether they should be checked via System.getProperty(String) or System.getenv() or both. |
Field Summary | |
---|---|
static java.lang.String |
FOLDER_AVD
Virtual Device folder inside the path returned by getFolder() |
static java.lang.String |
FOLDER_DOT_ANDROID
The name of the .android folder returned by getFolder() . |
Constructor Summary | |
---|---|
AndroidLocation()
|
Method Summary | |
---|---|
static void |
checkAndroidSdkHome()
Check the if ANDROID_SDK_HOME variable points to a SDK. |
static java.lang.String |
getAvdFolder()
Returns the folder where the users AVDs are stored. |
static java.lang.String |
getFolder()
Returns the folder used to store android related files. |
static java.lang.String |
getFolderWithoutWrites()
Returns the folder used to store android related files. |
static void |
resetFolder()
Resets the folder used to store android related files. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String FOLDER_DOT_ANDROID
getFolder()
.
public static final java.lang.String FOLDER_AVD
getFolder()
Constructor Detail |
---|
public AndroidLocation()
Method Detail |
---|
public static java.lang.String getFolder() throws AndroidLocation.AndroidLocationException
AndroidLocation.AndroidLocationException
public static java.lang.String getFolderWithoutWrites()
public static void checkAndroidSdkHome() throws AndroidLocation.AndroidLocationException
AndroidLocation.AndroidLocationException
@NonNull public static java.lang.String getAvdFolder() throws AndroidLocation.AndroidLocationException
AndroidLocation.AndroidLocationException
public static void resetFolder()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |