I am using google drive to open various pdf and .doc files through my android app in a webview all seems ok but when i try to open an image of png or jpg i get an error.
"Whoops there was a problem displaying this image."
here is a test you can run in a browser to get the same error
image link
is it even possible to open images like this or should i be using an installed app?
Related
I have a PDF file, when I open it on my computer (Linux) the Images in the PDF file is displayed properly(Its sharp)
But when I copy the same PDF from the computer to Android device and opened it there using Adobe Reader,
It looks like as following,
What can be the reason for this image distortion. What is the difference in opening this in computer and Android?
Any suggestions can lead me to a better search.
Adobe is the issue, If opened from any other viewer it works
I am trying to display a PDF in an Android application.
Constraints are: PDF cannot be downloaded to the mobile phone. Server through which PDF is getting downloaded is on Local network.
I can work on any option: getting the PDF to display on webview (more preferable) or getting the PDF to display using native technique.
Also if any solution involves converting the PDF to HTML and then displaying it will also be acceptable.
you can use third party library for this
https://github.com/voghDev/PdfViewPager
it works for me
Hey I'm struggling to get a tiff image downloaded from an FTP site to display in a WebView. After entering in the url in the format imageView.loadUrl("ftp://username:password#ftpsite/path");
(and the url is able to successfully download an image in ie or chrome)
I get an error message saying net::ERROR_UNKNOWN_URL_SCHEME. Does FTP not work in WebView? What else could the problem be?
(I later tried just downloading from the ftp site to the app but the image is .tiff and that opened up a whole new can of worms so I'm back to trying to use WebView instead of ImageView)
Edit: updated url with the path I actually use, I sloppily typed it in before :/
Does anyone know an Application which opens a dcm file when it is clicked on in say a file manager? I need to be able to load a dcm from a http url into an app that displays a dicom image.
I found one app with name Droid Dicom Viewer in some posts about .DCM file.
I found this link to get details about Droid Dicom Viewer.
ADIView - Android DICOM Image Viewer
I am downloading PDF file in my application and want to allow user to view it. Is it possible that using webview I can display that pdf file downloaded to SD Card or local memory.
As I know there is workaround in which I can provide the link of pdf file to google url which will open pdf in webview. But it lags and is very slow.
Basic answer, no. You can't open a PDF in a webview; so you either need to fire an Intent to open the file (the file can then open in the default installed app on the device); or write your own PDF reader.
Try to use pdf.js.
See http://www.worldwidewhat.net/2011/08/render-pdf-files-with-html5/
I downloaded its source and placed it in sdcard.
Then I use a WebView to load its index.htm.
It did show pdf file on a webView in sdcard in Android 4.0 device but sometime it show white page. I need to reload it and it finally can show.
Unfortunately, I also tested on Android 2.2 and 2.3 devices. They just show white page, nothing.
I know it make use of html5 canvas technology. I have checked on loading http://html5test.com/ on WebView and have tick on canvas element but still can't show pdf. Strange behaviour. Maybe really depends on Android version.