I need to read document and image using phonegap.
But i can read image only using window.open(url); but it's not working document.
And i can read document only using window.open(https://docs.google.com/viewer?url="");
but i need to read image and document using same url or api in phonegap.
if any possible for do this?
thanks in advance.
Use this html5lightbox will work in both ios and android. It supports images, Flash SWF files, YouTube, Vimeo and local mp4, m4v, flv, ogg, ogv and webm videos, works on Windows, Linux, Mac, iPhone, iPad, Android, Windows Phone and all modern web browsers
http://html5box.com/html5lightbox/
Phonegap cannot open document files by default. you have to install plugins to add these feature to it. for example you can use FileOpener plugin to open some common file extensions such as PDF, WORD, EXCEL, JPG, GIF, POWERPOINT, VIDEOS, MUSIC etc.
https://github.com/frankk994/phonegapFileOpener
https://github.com/pwlin/cordova-plugin-file-opener
Related
I have few SWF Files which I want to run view on my Android Device.
Earlier I was viewing those files in webview using flash player but now as flash player plugin is no more available on play store so the person who has not flash player plugin already can not view those files.
How can I show my SWF files without using Flash Player Plugin ?
You can use opensource code like SWFDec, but you have to porting it on android by yourself.
How to porting:
1. download swfdec source code from http://swfdec.freedesktop.org
2. cross-compile swfdec source code for android platform
3. read swfdec source code to find how to blit swfdec surface to android view
Google's Swiffy makes Flash files HTML5 friendly.
Google's cooked up a new tool in its labs that converts SWF files into HTML5 for use on devices that can't run Flash, including those made by Apple.
I use Adobe AIR for swf files to play b'cause its still free, but it does require you to sign up.. Here is setup require to getting started with Adobe AIR.. There is lot of stuff in that link well, you require only app, for viewing .swf file...
Firefox comes with SWF support. I had to play a SWF file in Android. Here's how I did it.
Download the SWF file to store locally in your device. Most likely by default it will be in the root/sdcard/download folder.
Open Firefox browser. Type in the URL file://root/sdcard/download/myFlashFilename.swf
It should show a "Tap to activate plugin" or similar message. Tap it and it should work.
Add this to Bookmark and Add to Home Screen for easy access.
I have created iPhone app where I am displaying PDF and playing audio and video files using fastpdfkit.
Now I want to make same app for Android also. Is there any kit for android where I can have same functionalities?
iText is a dedicated java library to create and manipulate PDF documents. It has an Android version named iTextG. iText tutorials are more available than for iTextG. So I suggest you to use iText tutorials.
iTextG is only for pdf manipulation. You can rely on Android multimedia API for audio and video support.
i am creating an app for my website which contains lots of wmv video files.
and i want to be able to play them in my app.
i understand that android does not support wmv files so my question is:
is there any way for me to do this without to change all videos format in my site?
any modificatios to my videos via code (java - eclipse) or libraries, any loop holes?
I've been trying to create a site that has streaming video and I could never get Android devices to work with it. Then I found this...
http://www.longtailvideo.com/blog/31646/the-pain-of-live-streaming-on-android
Does anyone know a way to embed a PPT file (powerpoint) into a HTML?
I found solutions like embed through an iframe by Office Web App and/or Google Docs. I tried them and works fine into the HTML, but in my case I need to have the PPT file into a personal server.
Other options I found are like Embedit.in, a flash embed that shows th PPT (no convert the PPT to SWF (flash format)).
But, I still looking for a way for show a PPT file saved in a personal server into a HTML, any idea? any webservice for this problem?
Before PowePoint 2010 you could save the ppt to html using PowerPoint API.
Did you checked also for api vendors? It's a common issue probably there api to do that.
Suggestion...
Convert the ppt to pdf and use the code generator # http://pdfobject.com/generator.php .
Use standard (not java) .
There in one small mistake in the code they generate Remove the hashtag # at the end of the url.
i want to create an android application in which i have to run ppt which will be present in sdcard. So far i have got to know that the only way to run the ppt is either calling different applications which deal with this or embed that in webview.
Thanks in advance
You cannot embed ppt, doc, excel etc in a Webview in android. Those are MS Office formats. You cannot even do that on a desktop pc with firefox/chrome.
EDIT
If the ppt is online you can use google docs to convert your document to html and than display it:
webview.loadUrl("http://docs.google.com/gview?embedded=true&url=http://myurl.com/mySlide.ppt");
If the ppt is on SD card, either:
a) Open it with default phone application. See How to use an intent to open a ppt with DataViz's Documents To Go
b) you need to convert it to html beforehand. There are many online/offline tools for that. Google "ppt to html converter"
Another possibility (depending if you no need your PPT file into the SDCard) is embed a PPT in a WebView using an iFrame like Office Web Apps or GoogleDocs.
I tested and works, but this options requires to have the PPT file into servers of Office Web Apps or GoogleDocs.