de.unikassel.android.sdcframework.devices
Class GPSDevice
java.lang.Object
de.unikassel.android.sdcframework.devices.AbstractSensorDevice
de.unikassel.android.sdcframework.devices.ScannerStateAwareSensorDevice
de.unikassel.android.sdcframework.devices.AbstractLocationDevice
de.unikassel.android.sdcframework.devices.GPSDevice
- All Implemented Interfaces:
- SampleProvidingSensorDevice, SensorDevice, VisitableDevice
public final class GPSDevice
- extends AbstractLocationDevice
Implementation of the GPS sensor device.
- See Also:
ScannerStateAwareSensorDevice
,
SampleProvidingSensorDevice
Methods inherited from class de.unikassel.android.sdcframework.devices.AbstractLocationDevice |
doHandleLocationChanged, doSignalDeviceNotEnabledInSystem, getLocationData, getLowerFrequency, getMinDistance, getSample, hasSample, isAirplaneModeOn, isDeviceInSystemEnabled, isLocationListenerRegistered, isStateListenerRegistered, onConfigurationChanged, onCreate, onDestroy, onScannerRunningStateChange, setStateListenerRegistered |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GPSDevice
public GPSDevice(Context context)
- Constructor
- Parameters:
context
- the context
getCurrentSampleData
protected SampleData getCurrentSampleData()
- Description copied from class:
AbstractLocationDevice
- Method to get the current sample data
- Specified by:
getCurrentSampleData
in class AbstractLocationDevice
- Returns:
- the current sample data
getDeviceDisabledMessageID
protected int getDeviceDisabledMessageID()
- Description copied from class:
AbstractLocationDevice
- Method to get the device disabled message
- Specified by:
getDeviceDisabledMessageID
in class AbstractLocationDevice
- Returns:
- the device disabled message