private void performInitializations ( ) { try { BMSClient . getInstance ( ) . initialize ( getApplicationContext ( ) , backendURL , backendGUID , BMSClient . REGION_US_SOUTH ) ; } catch ( MalformedURLException e ) { e . printStackTrace ( ) ; } MCAAuthorizationManager mcaAuthorizationManager = MCAAuthorizationManager . createInstance ( this . getApplicationContext ( ) ) ; mcaAuthorizationManager . registerAuthenticationListener ( customRealm , new MyChallengeHandler ( ) ) ; // to make the authorization happen next time mcaAuthorizationManager . clearAuthorizationData ( ) ; BMSClient . getInstance ( ) . setAuthorizationManager ( mcaAuthorizationManager ) ; Logger . setLogLevel ( Logger . LEVEL . DEBUG ) ; Logger . setSDKDebugLoggingEnabled ( true ) ; }
Initialize BMSClient and set the authorization manager