public class TWService extends Service implements LocationInformationManagerChangeStatusEventListener, TWLocationManagerEventListener
Modifier and Type | Field and Description |
---|---|
static int |
MSG_APPLICATION_SETTINGS_CHANGED |
static int |
MSG_CREATE_NOTIFICATION |
static int |
MSG_DESTROY_NOTIFICATION |
static int |
MSG_GPS_NOT_ENABLED |
static int |
MSG_LOCATION_RECEIVED |
static int |
MSG_MESSAG_STRING |
static int |
MSG_NETWORK_NOT_ENABLED |
static int |
MSG_REGISTER_CLIENT |
static int |
MSG_SHOW_APPLICATION_SETTINGS |
static int |
MSG_SHUTDOWN_APPLICATION |
static int |
MSG_START_LOCATION_UPDATES |
static int |
MSG_STATUS_INFORMATION |
static int |
MSG_STOP_LOCATION_UPDATES |
static int |
MSG_TEAM_NAME |
static int |
MSG_UNREGISTER_CLIENT |
static int |
NOTIF_ID |
Constructor and Description |
---|
TWService() |
Modifier and Type | Method and Description |
---|---|
void |
createNotification()
Crea la notificació de l'aplicació
|
void |
destroyNotification()
Destrueix la notificació de l'aplicació
|
void |
finalize()
Destructor de la classe
|
void |
handleLocationInformationManagerChangeStatusEvent(java.util.EventObject e)
Implementació de handleLocationInformationManagerChangeStatusEvent, per gestionar els events
LocationInformationManagerChangeStatusEvent |
void |
handleTWLocationManagerEvent(TWLocationManagerEvent e)
Implementació de handleTWLocationManagerEvent, per gestionar els events
TWLocationManagerEvent |
IBinder |
onBind(Intent intent) |
void |
onCreate() |
void |
onDestroy() |
int |
onStartCommand(Intent intent,
int flags,
int startId) |
void |
updateNotification() |
public static final int MSG_REGISTER_CLIENT
public static final int MSG_UNREGISTER_CLIENT
public static final int MSG_MESSAG_STRING
public static final int MSG_START_LOCATION_UPDATES
public static final int MSG_STOP_LOCATION_UPDATES
public static final int MSG_STATUS_INFORMATION
public static final int MSG_GPS_NOT_ENABLED
public static final int MSG_TEAM_NAME
public static final int MSG_NETWORK_NOT_ENABLED
public static final int MSG_LOCATION_RECEIVED
public static final int MSG_SHOW_APPLICATION_SETTINGS
public static final int MSG_APPLICATION_SETTINGS_CHANGED
public static final int MSG_SHUTDOWN_APPLICATION
public static final int MSG_CREATE_NOTIFICATION
public static final int MSG_DESTROY_NOTIFICATION
public static final int NOTIF_ID
public void onCreate()
public void onDestroy()
public IBinder onBind(Intent intent)
public int onStartCommand(Intent intent, int flags, int startId)
public void handleLocationInformationManagerChangeStatusEvent(java.util.EventObject e)
LocationInformationManagerChangeStatusEvent
handleLocationInformationManagerChangeStatusEvent
in interface LocationInformationManagerChangeStatusEventListener
e
- instància de EventObject
public void handleTWLocationManagerEvent(TWLocationManagerEvent e)
TWLocationManagerEvent
handleTWLocationManagerEvent
in interface TWLocationManagerEventListener
e
- instància de TWLocationManagerEvent
public void destroyNotification()
public void updateNotification()
public void createNotification()
public void finalize() throws java.lang.Throwable
java.lang.Throwable