My app has a link to open a pdf using:
Intent.ACTION_VIEW, Uri.parse("http://linkgoeshere/filename.pdf")
this works fine when the user wants to see the pdf the first time. however i dont want the user to download the file over and over again when it is already available on the device. So, how do I check if the file already exists (afaik the download path depends on the used device/ android version), and in case it exists how do i open it directly instead of downloading.