private void startAuthenticationActivity(){
  if (Constants.AUTO_ENROLLMENT_BACKGROUND_SERVICE_ENABLED == false) {
    Intent intent=new Intent(ServerDetails.this,AuthenticationActivity.class);
    intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
    startActivity(intent);
  }
}

private void startAuthenticationActivity ( ) { if ( Constants . AUTO_ENROLLMENT_BACKGROUND_SERVICE_ENABLED == false ) { Intent intent = new Intent ( ServerDetails . this , AuthenticationActivity . class ) ; intent . setFlags ( Intent . FLAG_ACTIVITY_CLEAR_TOP ) ; startActivity ( intent ) ; } }
this method is called to open authenticationactivity .
