This link,
intent://www.youtube.com/watch?v=uYqxf5eiLSU#Intent;package=com.google.android.youtube;scheme=https;end
opens the specified content inside the app.But typing this link in to the browser is not opening up the app. So how are these links supposed to be used?
I know using it in anchor tags like below will enable users to click the link, and user will be taken to desired place.
Click to open in android.
But how can we open these links directly without the help of a webpage? Or is there any other ways to open deeplinks?
Any help is appreciated.
Just copy the URL without changing anything.
Also you can add target="_blank" attribute to open in new page.
Open stackoverflow
In your case, you can pass this link to refer to your video.
Open my awesome yt video!!
Related
so i found a way to open pdf file using open_file but now i want to open with specific page.. for example there is 10 page and i want to navigate to page 5 as initial page when it is done opening from default app.. is there a way to achieve that?? i want to avoid open pdf in app using other plugin.. the thing is i have like 360 page pdf and i want user to be able to open to specific page when he pressed a button...
open_file plugin can't do that.
here for android source code and here for iOS source code.
You may change to another plugin such as syncfusion_flutter_pdfviewer or any one can do this.
I have to show a PDF file inside my application and the PDF file contains a link inside (this link sends the user to the website).
I am searching for a library that allows me to show the file inside my application and if the user clicks the link, open a browser.
Is it possible?
Thanks in advance! :)
I personally use this one : AndroidPdfViewer
you can use a webview also following this example : Example pdf on webview
As posted in a previous question, that possibly is pointing me in the right direction,
I need to intercept the event of the user downloading a file (from the browser, form the email..) so that I can propmpt the user and save the file in a folder defined in my app.
And, viceversa I need to be able to intercept the event of the user uploading a file into a webpage, so that I can offer him to select the file from the folder defined in my app.
If somebody could point me in the right direction I would really be grateful!
If there is any open source solution already available that would be very useful as well.
I found this link: Intercepting links from the browser to open my Android app
You can intercept the link like explained in the answer. Once you've got the link, it is up to you how to handle it through code. If you want to download it with your own applications to a folder you desire, you can use following codes:
Download a File In Android From Remote Server
How to download file/image from url to your device
I hope these will help you.
I am using the following link inside a WebView to show a pdf file in my android application:
http://docs.google.com/gview?embedded=true&url=http://174.136.1.35/dev/android/1_android-Survey-Report-for-pdf-1200-x-768.pdf
This works, and displays the PDF, as you can see in the attached images. The problem I have is that
I want to disable the zoom controls, and the desktop and download
links.
Is this possible, and if so, how?
You are basically opening a web view and loading it with a webpage from the internet, specifically Google Docs. Without some special functionality built into the website, there isn't going to be way to get rid of the extra buttons, links, and labels you're seeing. Instead of this, you could download the PDF that your link is pointing to as a PDF and try to display that directly. There is a stack overflow question on this topic
I have an app where I've button on a webpage that is rendered inside a webview.
Now on click of button , a pdf file gets downloaded , and the same would then need to be opened inside the same webview.
attach a download listener to the web view and change the url as follows..
"https://docs.google.com/gview?embedded=true&url=https://www.example.com/xxxxxyyyyyxz.pdf"
example
https://docs.google.com/gview?embedded=true&url=https://www.adobe.com/support/products/enterprise/knowledgecenter/media/c4611_sample_explain.pdf
it's a link used to open pdf without downloading it...
I hope it solves your problem..
I've found that the google viewer seems to work within the android browser for viewing online PDF files. You could build a link to your pdf so that it is displayed in the viewer. I've not tried doing that within a WebView though.
UPDATE
The link is dead, there is an explanation of how to get the functionality to still work at this link.
In case this link also dies, here is the relevant section:
While the page is no longer available as it redirects to Google Docs/Drive, you can still use the Google Docs Viewer. Paste this URL in a new tab:
https://docs.google.com/viewer?url=
and then paste the address of the document you want to view online. Here's an example:
https://docs.google.com/viewer?url=http://research.google.com/archive/bigtable-osdi06.pdf
I do not think that the present android chrome based browser can support pdf. There are discussion about the same in android forums ( ex: link1 link2)
Your best bet to show pdf is to have adobe pdf reader for android installed.(or concisely put, not possible in web view)
I don't think any browser other than Chrome supports rendering PDFs without a plugin or third party tool. It's probably easier to let the user use his own app to open PDFs.
I used the IText PDF library mentioned in this thread
Android : Is there any free PDF library for Android for a sample project. You could try getting using this API to get the PDF page as an image. I am not familiar with every aspect of Itext so it might have better way to do this.