Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fun startViewIntent(uri: Uri) {
- val intent = Intent(Intent.ACTION_VIEW)
- intent.data = uri
- try {
- startActivity(intent)
- } catch (e: ActivityNotFoundException) {
- e.printStackTrace()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement