Cortex Android
 All Classes Namespaces Functions Variables
nl.sense_os.cortex.coaching.SenseServiceBind Class Reference
Inheritance diagram for nl.sense_os.cortex.coaching.SenseServiceBind:

Public Member Functions

void onReceive (Context context, Intent intent)
 

Static Public Member Functions

static SensePlatform getSensePlatform (Context context)
 

Member Function Documentation

static SensePlatform nl.sense_os.cortex.coaching.SenseServiceBind.getSensePlatform ( Context  context)
static

Get the SensePlatform object

This functions tries to bind implicitly to the SenseService using the CSApplication.
Make sure you define your application as a CSApplication in the AndroidManifest.xml:
<application android:name="nl.sense_os.cortex.coaching.CSApplication"/>

Binding can take some time, this function therefore uses Thread.sleep and waits until it gets a successful bind.

Don't call this function from the main (GUI) thread or it will wait forever.

Parameters
contextThe application context
Returns
The binded SensePlaform object

The documentation for this class was generated from the following file: