startActivityForResult 와 onActivityResult 대체안
example:
private lateinit var resultLauncher: ActivityResultLauncher<Intent>
resultLauncher = registerForActivityResult(ActivityResultContracts.StartActivityForResult()) {
Log.d(TAG, "result code: ${it.resultCode}")
}
button.setonClickListener {
resultLauncher.launch(loginIntent)
}