private fun loadServerDetailsActivity() { Preference.putString(context, Constants.PreferenceFlag.IP, null) val intent = Intent(this@AlreadyRegisteredActivity, ServerDetails::class.java) intent.putExtra(getResources().getString(R.string.intent_extra_regid), regId) intent.putExtra( getResources().getString(R.string.intent_extra_from_activity), AlreadyRegisteredActivity::class.java.getSimpleName() ) intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP) startActivity(intent) finish() }
Load server details activity .