This file contains hidden or 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
| // General activity result contract | |
| private val openPostActivity = | |
| registerForActivityResult(ActivityResultContracts.StartActivityForResult()) { result -> | |
| if (result.resultCode == Activity.RESULT_OK) { | |
| // Do something here | |
| toast("Result OK from PostActivity") | |
| } | |
| } | |
| btn_post.setOnClickListener { |
This file contains hidden or 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
| request_permission.setOnClickListener { | |
| requestPermission.launch(permission.BLUETOOTH) | |
| } | |
| request_multiple_permission.setOnClickListener { | |
| requestMultiplePermissions.launch( | |
| arrayOf( | |
| permission.BLUETOOTH, | |
| permission.NFC, | |
| permission.ACCESS_FINE_LOCATION |
This file contains hidden or 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
| Windows Registry Editor Version 5.00 | |
| [-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder] | |
| [-HKEY_CLASSES_ROOT\Directory\shell\Cmder] |