Currently I have a pdf url, and I would like to simply using the intent to open it, however, it does not work if I put the url in intent
url
intent
View document using below method by default application in device. Here url is the docuement url.
val browserIntent = Intent( Intent.ACTION_VIEW, Uri.parse(url) ) (view.context as AppActivity).startActivity(browserIntent)