public class LocationHandlerUI extends Object implements HandlerUI
HandlerUI,
GPSHandler,
WifiHandler| Constructor and Description |
|---|
LocationHandlerUI() |
| Modifier and Type | Method and Description |
|---|---|
String |
About()
Returns the About String shown when selecting the About menu item in the Options menu
|
String |
AboutTitle()
Returns the Title for the About Dialog shown when selecting the About menu item in the Options menu
|
void |
configurePreference(PreferenceActivity prefs)
Function to configure the Preference activity with any preset value necessary - here gathering the known WiFi access points and populating the appropriate ListPreference
|
void |
destroy()
Destroys any resources for this
HandlerUI |
HandlerEntry |
init(Context context)
Initialises the settings entry with the name, description and icon resource ID
|
void |
onSharedPreferenceChanged(SharedPreferences sharedPreferences,
String key)
Callback for when a preference entry has changed - this is needed here to recreate the right checkmarks on the adaptive GPS WiFi list for the ListPreferenceMultiSelect
Unfortunately, the method here is rather crude by closing and restarting the activity - no better way found yet
|
int |
setDisplay()
Returns the resource ID to the preference XML file containing the layout of the preference
|
public HandlerEntry init(Context context)
public int setDisplay()
setDisplay in interface HandlerUIpublic String About()
public String AboutTitle()
AboutTitle in interface HandlerUIpublic void onSharedPreferenceChanged(SharedPreferences sharedPreferences,
String key)
sharedPreferences - Reference to the current SharedPreferenceskey - String of the key that has changedpublic void destroy()
HandlerUIpublic void configurePreference(PreferenceActivity prefs)
configurePreference in interface HandlerUIprefs - Reference to PreferenceActivity