The entry point into the client SDK is the SDKManager class. Applications that also integrate the AW Framework do not need explicit SDKManager initialization. If you integrate the AWFramework, skip this task.

Important:

It must initialize with the application context on a background thread.

The code is an example of initialization.

new Thread(new Runnable() {
                  public void run() {
                  try {
                  awSDKManager = SDKManager.init(getApplicationContext());
                  } catch (AirWatchSDKException e) {
                  runOnUiThread(new Runnable() {
                  @Override
                  public void run() {
                  String reason = "AirWatch SDK Connection Problem. " +
                  "Please make sure the  AirWatch Agent is Installed";
                  Toast.makeText(getApplicationContext(), reason, Toast.LENGTH_LONG).show();
                  }
                  });
                  }
                  }
                  }).start();
                  
                  
                  
               

Once initialization completes, you can use the Client SDK.

Note:

 Reference the Javadoc for more in-depth information on what APIs are available.