|
void | onReceive (Context context, Intent intent) |
|
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
-
context | The application context |
- Returns
- The binded SensePlaform object
The documentation for this class was generated from the following file:
- android-sdk/src/nl/sense_os/cortex/coaching/SenseServiceBind.java