getRegistrationStatus
Retrieves the current status of the mobile application registration.
registerApplication
Creates the registration for this application and starts the connection. This method is equivalent to calling registerApplication(0).
registerApplication (int timeout)
Creates the registration for this application and starts the connection. An ApplicationTimeoutException is thrown if the method does not succeed within the number of seconds specified by the timeout.
setApplicationCallback
Sets the callback for the current application. It is optional, but recommended, to register a callback so the application can respond to changes in connection status, registration status, and application settings.
getApplicationContext
Returns the Android application context which allows access to application-specific resources and classes.
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.
startConnection
Starts the connection for this application. This method is equivalent to calling startConnection(0), but is a non-blocking call which returns immediately. Use getConnectionStatus or the ApplicationCallback to retrieve the connection status.
startConnection (int timeout)
Starts the connection for this application. If the connection was previously started, then this operation has no effect. You must set the appropriate connectionProperties before calling this operation. An ApplicationTimeoutException is thrown if the method does not succeed within the number of seconds specified by the timeout.
getConnectionStatus
Return current status of the mobile application connection.
getConnectionProperties
Retrieves the connection parameters from the application's connection properties instance. You must set connection properties before calling startConnection, registerApplication or unregisterApplication.
getApplicationSettings
Return application settings that have been received from the SAP Mobile Server after application registration and connection.
stopConnection
Stops the connection for this application. This method is equivalent to calling stopConnection(0).
stopConnection (int timeout)
Stop the connection for this application. An ApplicationTimeoutException is thrown if the method does not succeed within the number of seconds specified by the timeout.
unregisterApplication
Delete the registration for this application, and stop the connection. If no registration was previously created, or a previous registration was already deleted, then this operation has no effect. This method is equivalent to calling unregisterApplication(0), but is a non-blocking call which returns immediately. You can set the applicationCallback before calling this operation to receive asynchronous notification of registration status changes.
unregisterApplication(int timeout)
Delete the registration for this application, and stop the connection. If no registration was previously created, or a previous registration was already deleted, then this operation has no effect. You can set the applicationCallback before calling this operation to receive asynchronous notification of registration status changes.