|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectService
com.TwentyCodes.android.SkyHook.SkyHookService
public class SkyHookService
this will be a service that will retrieve periodic updates on the users location
| Field Summary | |
|---|---|
static String |
PERIOD_BETWEEN_UPDATES
|
static String |
TAG
|
| Constructor Summary | |
|---|---|
SkyHookService()
|
|
| Method Summary | |
|---|---|
Location |
convertLocation()
converts skyhook's location object into android's location object |
IBinder |
onBind(Intent arg0)
(non-Javadoc) |
void |
onCreate()
|
void |
onDestroy()
aborts location services (non-Javadoc) |
void |
onStart(Intent intent,
int startId)
To keep backwards compatibility we override onStart which is the equivalent of onStartCommand in pre android 2.x |
int |
onStartCommand(Intent intent,
int flags,
int startId)
This method is called when startService is called. |
static Runnable |
startService(Context context,
long period)
a convince method for starting the service. |
static Runnable |
stopService(Context context)
a convince method for stopping the service |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PERIOD_BETWEEN_UPDATES
public static final String TAG
| Constructor Detail |
|---|
public SkyHookService()
| Method Detail |
|---|
public Location convertLocation()
public IBinder onBind(Intent arg0)
arg0 -
Servicepublic void onCreate()
public void onDestroy()
Service
public void onStart(Intent intent,
int startId)
public int onStartCommand(Intent intent,
int flags,
int startId)
public static Runnable startService(Context context,
long period)
context - period - between updates in milliseconds
public static Runnable stopService(Context context)
context -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||