• BlackBerry Spark AppSecure
  • Security library for Android applications
  • 0.7.915.0
Diagnostics Class Reference

Class to help diagnose issues, including checking the runtime version and uploading logs to BlackBerry Support.

Inherits StringUtils.

Classes

interface  LogsUploadFinishedListener
 Listener for handling the result of log upload. More...
 
enum  LogsUploadFinishedStatus
 Enumeration of the possible outcomes when log upload has finished. More...
 

Public Member Functions

String getRuntimeVersion ()
 Get BlackBerry Spark AppSecure SDK Version. More...
 
String getBlackBerryAppContainerID ()
 Get BlackBerry Spark AppSecure App Container ID. More...
 
void uploadLogs (String reason, LogsUploadFinishedListener listener)
 Send recent logs to BlackBerry Support. More...
 

Member Function Documentation

◆ getRuntimeVersion()

String getRuntimeVersion ( )

Provides the version of the runtime library in a dotted string representation. (e.g. 1.0.0)

Returns
String BlackBerry Spark AppSecure version

◆ getBlackBerryAppContainerID()

String getBlackBerryAppContainerID ( )

Provides the BlackBerry app container id. Please provide this value to BlackBerry Support to aid in identifying uploaded logs.

Returns
String BlackBerry Spark AppSecure app container id.

◆ uploadLogs()

void uploadLogs ( String  reason,
LogsUploadFinishedListener  listener 
)

Recent logs from the runtime are stored encrypted in the BlackBerry secure container. A developer may upload these securely to BlackBerry to assist with troubleshooting. After uploading please provide your BlackBerry App Container ID when contacting BlackBerry Support.

Parameters
reasonRecommended to be provided as an aid to log analysis. This could be a user entered reason, or some internal identifier from the developer to help locate the logs.
listenerCallback to be invoked when the log upload process finishes.