deprecated
-
deprecated startActivityForResultAndroid 2021. 5. 28. 12:06
fun openActivityForResult() { startForResult.launch(Intent(this, AnotherActivity::class.java)) } val startForResult = registerForActivityResult(ActivityResultContracts.StartActivityForResult()) { result: ActivityResult -> if (result.resultCode == Activity.RESULT_OK) { val intent = result.data // Handle the Intent //do stuff here } } in Kotlin
-
The 'kotlin-android-extensions' Gradle plugin is deprecated.Android 2021. 2. 15. 16:53
1. Kotlin synthetic Update View Bindings or Data Bindings in App level gradle file and then use binding instance 2. Parcelable Remove plugin kotlin-android-extension & add plugin kotlin-parcelize in App level gradle file In kotlin version 1.4.20