Interface IAndroidSettings
-
public interface IAndroidSettings
Allows to manage main Android settings in DT IDE:- Android SDK location
Initial SDK location can be obtained by theANDROID_HOME
system environment variable or from third-party Eclipse plug-ins
- Restriction:
- This interface is not intended to be extended by clients.
- Restriction:
- This interface is not intended to be implemented by clients.
- Android SDK location
-
-
Field Summary
Fields Modifier and Type Field Description static String
MOBILE_OS_ID
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addAndroidSettingsChangeListener(IAndroidSettingsChangeListener listener)
Add Android settings change listener to service.Path
getDefaultSdkLocation()
Get default Android SDK location setting.Path
getSdkLocation()
Get Android SDK location setting.void
removeAndroidSettingsChangeListener(IAndroidSettingsChangeListener listener)
Remove registered listener from service.void
setSdkLocation(Path location)
Set Android SDK location setting.boolean
validateSdkLocation(Path location)
Validate the given Android SDK location.
-
-
-
Field Detail
-
MOBILE_OS_ID
static final String MOBILE_OS_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSdkLocation
Path getSdkLocation()
Get Android SDK location setting. Can returnnull
if not set.- Returns:
- the Android SDK location or
null
if not set yet
-
getDefaultSdkLocation
Path getDefaultSdkLocation()
Get default Android SDK location setting. Tries to get location from:- Environment variable
ANDROID_HOME
- Trird party plug-ins
null
if cannot get.- Returns:
- default Android SDK location setting or
null
if cannot get
- Environment variable
-
setSdkLocation
void setSdkLocation(Path location)
Set Android SDK location setting.- Parameters:
location
- the new location, cannot benull
-
validateSdkLocation
boolean validateSdkLocation(Path location)
Validate the given Android SDK location. Returns whether the given location is valid to set.- Parameters:
location
- the location to check, cannot benull
- Returns:
- whether the given location is valid to set
-
addAndroidSettingsChangeListener
void addAndroidSettingsChangeListener(IAndroidSettingsChangeListener listener)
Add Android settings change listener to service. Listener will be notified about Android settings changes.Causes no effect if given listener is already registered.
- Parameters:
listener
- the listener to add, cannot benull
-
removeAndroidSettingsChangeListener
void removeAndroidSettingsChangeListener(IAndroidSettingsChangeListener listener)
Remove registered listener from service. Listener will no longer be notified about Android settings changes.- Parameters:
listener
- the listener to remove, cannot benull
-
-