Skip to content

Instantly share code, notes, and snippets.

@TonnyL
Created February 13, 2018 05:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TonnyL/6a7183c18f6847d2528cb0ec35ae9e47 to your computer and use it in GitHub Desktop.
Save TonnyL/6a7183c18f6847d2528cb0ec35ae9e47 to your computer and use it in GitHub Desktop.
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
if (requestCode == REQUEST_CODE_CHOOSE && resultCode == Activity.RESULT_OK) {
val uris = Charles.obtainResult(data)
val paths = Charles.obtainPathResult(data)
Log.d("charles", "uris: $uris")
Log.d("charles", "paths: $paths")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment