public final class AndroidLocation
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
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. |
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
AndroidLocation() |
| Modifier and Type | Method and Description |
|---|---|
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 java.lang.String |
getUserHomeFolder() |
static void |
resetFolder()
Resets the folder used to store android related files.
|
public static final java.lang.String FOLDER_DOT_ANDROID
getFolder().public static final java.lang.String FOLDER_AVD
getFolder()public static java.lang.String getFolder()
throws AndroidLocation.AndroidLocationException
AndroidLocation.AndroidLocationExceptionpublic static java.lang.String getFolderWithoutWrites()
public static void checkAndroidSdkHome()
throws AndroidLocation.AndroidLocationException
@NonNull
public static java.lang.String getAvdFolder()
throws AndroidLocation.AndroidLocationException
AndroidLocation.AndroidLocationExceptionpublic static java.lang.String getUserHomeFolder()
throws AndroidLocation.AndroidLocationException
public static void resetFolder()