Opening an Android Application from a PDF possible? - android

I was wondering how to open an android APP from a PDF. I wanted to make a PDF document for kids that would automatically open the application when the child pressed on the apps button on the PDF document. I can generate links in the PDf that will make it open videos and go to web pages, but not that could open an application already installed on the tablet.

Related

Open PDF in Android without it Automatically Being Downloaded To Device

I have a mobile responsive website where users enter login credentials to gain access to view
pdf files inside my portal.
When viewing the website on my android phone, if a pdf is opened from inside the portal, my android phone automatically downloads a copy of the pdf on the android phone and then opens it.
This same process on a laptop or desktop simply opens the pdf in the default browser. There is a download button, but it is not automatically downloaded on the device.
From a programming standpoint, is there a way a programmer could prevent the PDF document from being automatically downloaded on the android phone and just have the document viewable in the browser?
Depends on what you mean by downloaded. Whenever you view ANYTHING on the web, you have to download it. Downloading is the process of receiving data from a remote source. You have to download any webpage or url to view it.
It seems what you're asking is "Does it have to be saved to a file in the Downloads folder". In which case no, it doesn't. You could download it and keep it in RAM.

Open PDFs in WebView

I am trying to build an app using Flutter that uses the Webview to open a website. Within this website there are a number of pdfs and I want to open them inside the app as well, instead of redirecting to a browser or an acrobat viewer. Is there any way to do this?

How to Open link inside PDF page in android app using android Pdf viewer library

I am making one PDF reader app.
I am using android pdfViewer library
com.github.barteksc:android-pdf-viewer:2.8.2
My issue is their are some links inside my PDF pages. when user clicks on it the link should open in phone's default browser.
Note: I am not using Webview. PDFs are simply stored in assets folder and i am loading it from that folder

React PWA cannot open external PDF in Chrome (Android)

I have a React progressive web app which contains a link to a PDF file. The app has been added to the home screen using the Google banner (https://developers.google.com/web/updates/images/2015/12/getting-started-pwa/pwa-general-2-#1x.jpg), so it is treated as an app, not a shortcut.
The problem is I cannot open the PDF file from the installed PWA on Android. I get an error saying: Cannot open PDF (pdf_name.pdf cannot be opened).
Opening the PDF from a regular browser (desktop or mobile) works. Opening from home screen app on iOS also works.
My PWA is hosted at app.domain.com, while the PDF is hosted at api.domain.com.
The link to the PDF file looks like this:
<a rel="noopener" href="https://api.domain.com/pdf_name.pdf"
target="_blank">View PDF</a>
External links that go to regular pages (not files) work.
Any ideas what might prevent Chrome from being opened from within the app?
I fixed this by simply removing the target attribute. It opens up in a new tab anyway. For PWA's on Android, specifying a new tab with the target attribute causes an error. It seems that when you manually specify a new tab the browser reacts as if there are 2 pages to download, the pdf and an empty web page (0 kb). Oddly, the Samsung Internet Browser also does this but just downloads both. The PWA Chrome Browser errors instead.

How to set Dialog box from stop opening default app in android?

what the problem i am facing is in android mobile when you have only one app for viewing PDF document, in that case when you select a pdf file it opens directly the existing app for viewing without asking any permission but when you have more than one app for viewing PDF file and when you select a file it will ask your permission to open which app for viewing. Well, what i need is it should ask permission even when i have only one app for viewing pdf file.
Can it be done in android device?
If you wrote the PDF viewer app you could have it read the intent data for a file location on the phone to open the pdf file.
From the app that clicks the pdf file, you can start an intent and pass the file location with it after a pdf is clicked.

Categories

Resources