public class AIRS_remote
extends Service
AIRS_local,
AIRS_record_tab,
Service| Modifier and Type | Class and Description |
|---|---|
class |
AIRS_remote.LocalBinder |
| Modifier and Type | Field and Description |
|---|---|
int |
bytes_sent
Bytes sent to your own NORS application server during the recording
|
boolean |
failed
Flag that connection request to your own NORS application server has failed
|
Handler |
mHandler |
boolean |
running
Flag if AIRS is recording
|
static int |
SHOW_NOTIFICATION
Handler variable for showing a notification through the UI thread
|
boolean |
started
Flag if AIRS has been started as a service already
|
static String |
TEXT
Handler variable for the text shown by the notification
|
int |
values_sent
Values sent to your own NORS application server during the recording
|
| Constructor and Description |
|---|
AIRS_remote() |
| Modifier and Type | Method and Description |
|---|---|
IBinder |
onBind(Intent intent)
Returns current instance of AIRS_local Service to anybody binding to AIRS_local
|
void |
onCreate()
Called when starting the service the first time around
|
void |
onDestroy()
Called when service is destroyed, e.g., by stopService()
Here, we tear down all recording threads, close all handlers, unregister receivers for battery signal and close the thread for indicating the recording
|
int |
onStartCommand(Intent intent,
int flags,
int startId)
Called when startService() is invoked by other parts of AIRS (AIRS_record_tab as well as AIRS_shortcut)
The sequence of calling this appropriately (be careful to not change this)
1.
|
public static final int SHOW_NOTIFICATION
public static final String TEXT
public boolean running
public boolean started
public boolean failed
public int bytes_sent
public int values_sent
public final Handler mHandler
public IBinder onBind(Intent intent)
intent - Reference to calling Intentpublic void onCreate()
Servicepublic void onDestroy()
Servicepublic int onStartCommand(Intent intent,
int flags,
int startId)
intent - Reference to the calling Intentflags - Flags set by the callerstartId - ID created per calling of the service (identifying the caller)AIRS_shortcut,
AIRS_record_tab