Last active
May 1, 2020 22:55
-
-
Save wajahatkarim3/4b7f0e79411d384d3d2f6b3c07d42158 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MainActivity : AppCompatActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
} | |
// Other Methods | |
private val simpleContractRegistration = registerForActivityResult(SimpleContract()) {resultStr -> | |
if (resultStr == null) | |
Toast.makeText(this, "Nothing selected / User Cancelled", Toast.LENGTH_SHORT).show() | |
else | |
Toast.makeText(this, "Selected value is $resultStr", Toast.LENGTH_SHORT).show() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment