Call back method upon Asynchronous Registration call.
Try{ UserManager userManager = new UserManager(clientConnection); userManager.setUserRegistrationListener(this); userManager.registerUser(false); //for Asynchronous registration } Catch(SMPException e){ } public void onAsyncRegistrationResult(State registrationState,ClientConnection conn, int errCode, String errMsg) { TODO Auto-generated method stub if(registrationState == State.SUCCESS) { Log.i("Registration State Success",conn.getServerHost()+conn.getApplicationID()+conn.getDomain()+conn.getRequestManager().toString()); } if(registrationState == State.FAILURE) { Log.i("Registration State Failure",errCode+errMsg+conn.getServerHost()); } }
@param registrationState represents the status of the Asynchronous Registration call. @param clientConnection ClientConnection object to uniquely identify the Asynchronous Registration call. @param errorCode Error Code in case of registrationState being 'FAILURE'. @param errorMsg Error Message in case of registrationState being 'FAILURE'.