The entry point into the client SDK is the SDKManager class.

Important:

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

Note:

Applications that also integrate the AW Framework do not need explicit SDKManager initialization. The AW Framework does this internally.

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 AirWatch MDM Agent is Installed";
                  Toast.makeText(getApplicationContext(), reason, 
                  	Toast.LENGTH_LONG).show();
                  }
                  });
                  }
                  }
                  }).start();
                  
                  
                  
                  
               

Once initialization completes, you can use the AirWatch Client SDK.

Note:

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

For more information on setting up the Android SDK for internal apps, see the following AirWatch Knowledge Base article: https://support.air-watch.com/articles/115001676448.