com.android.prefs
Class AndroidLocation

java.lang.Object
  extended by com.android.prefs.AndroidLocation

public final class AndroidLocation
extends java.lang.Object

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.
 
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 java.lang.String getFolder()
          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

FOLDER_DOT_ANDROID

public static final java.lang.String FOLDER_DOT_ANDROID
The name of the .android folder returned by getFolder().

See Also:
Constant Field Values

FOLDER_AVD

public static final java.lang.String FOLDER_AVD
Virtual Device folder inside the path returned by getFolder()

See Also:
Constant Field Values
Constructor Detail

AndroidLocation

public AndroidLocation()
Method Detail

getFolder

@NonNull
public static final java.lang.String getFolder()
                                        throws AndroidLocation.AndroidLocationException
Returns the folder used to store android related files.

Returns:
an OS specific path, terminated by a separator.
Throws:
AndroidLocation.AndroidLocationException

resetFolder

public static final void resetFolder()
Resets the folder used to store android related files. For testing.