setApplicationContext

Sets the Android application context, which is required before calling the startConnection, registerApplication or unregisterApplication methods. This method must be called in an user interface thread, not a background thread.

Syntax

public void setApplicationContext(android.content.Context context)

Parameters

  • context – The Android application context.

Returns

None.

Examples

  • Set the Application Context
    setApplicationContext(android.content.Context context)