Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

start activity for result deprecated

var resultLauncher = registerForActivityResult(StartActivityForResult()) { result ->
    if (result.resultCode == Activity.RESULT_OK) {
        // There are no request codes
        val data: Intent? = result.data
        doSomeOperations()
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #start #activity #result #deprecated
ADD COMMENT
Topic
Name
2+9 =