public class Netandgps
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Netandgps.PositionSensorCallBack
callback for position
|
Modifier and Type | Field and Description |
---|---|
boolean |
meetGPS
meet
|
Constructor and Description |
---|
Netandgps(android.content.Context ctx,
Netandgps.PositionSensorCallBack callback,
boolean isMeet)
init
|
Modifier and Type | Method and Description |
---|---|
void |
addTimeAndPositionListener(TimeListener toadd)
add a movement listener
|
void |
InitialiseGPSandNetworkTimeListener()
init the gps
|
void |
InitialiseTimeListener() |
boolean |
isGPSenabled()
return if the GPS is available
|
boolean |
isNetworkEnabled()
determine if we can get from the 3G operator some location/ time
|
void |
removeTimeandPositionListener(TimeListener toremove)
remove time and movement listener
|
void |
removeTimeListener()
remove the movement listener
|
public Netandgps(android.content.Context ctx, Netandgps.PositionSensorCallBack callback, boolean isMeet)
ctx
- contextcallback
- call backisMeet
- determine if there is a calibration meetingpublic void InitialiseTimeListener()
public void InitialiseGPSandNetworkTimeListener()
public void removeTimeListener()
public void addTimeAndPositionListener(TimeListener toadd)
toadd
- public void removeTimeandPositionListener(TimeListener toremove)
toremove
- public boolean isGPSenabled()
public boolean isNetworkEnabled()