The Android supports flash files?
How I can integrate this?
WebView??
Integrate with some tool of Adobe??
The idea is have local flash files and play that inside of my application.
Short Answer:
Yes, you can play flash files in android app using just a Webview.
Long Answer:
You have to create an html file with embedded swf file. See sample here http://pastebin.com/BYrfKmea
After that You can put html and swf files in assets folder and try opening it in a WebView by
mWebView.loadUrl("file:///android_asset/player.html");.
This thread also might be useful.
Related
How can I open a pdf file from my android device(from download folder) on a webview? I tried to open pdf on webview but it supports only web url.Is it possible to open local pdf file on webview. I tried barteksc library, but it is a very large file. Any solutions?
I would suggest you use the native feature PdfRenderer instead of webview.
From android OS 5.0(lollipop) on-wards you can use this class to show pdf's within the app. If you want to support OS lower than that you can use a library as there is no native support
Read more about the class from the docs here, you can also refer this example provided by google
I have a swf file that has sound. I would like to embed the file to my App as a splash screen? What would be the best solution?
Like convert it to a video put there or any other solution?
Thanks!
With swf file, you can:
Using Webview to load file (be sure device support Flash)
Or convert to video (ex: mp4,..) to embed in your activity (recommend)
Media supported: https://developer.android.com/guide/topics/media/media-formats.html
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 a simple Android webview app, built with Phonegap Build. When trying to play a local mp3 file that's included in the APK, nothing happens. However, if I pull an mp3 from the web it works.
e.g.
<audio src="www.example.com/01.mp3" > WORKS JUST FINE
<audio src="01.mp3" > DOES NOT WORK
I'm new to Android development, so I can only guess that the file is somehow inaccessible by Android's media player. Here's a link to the errors/warnings from my log file if that helps shed any light on the problem.
http://pastebin.com/isS542RE
I have it working using Phonegap's Media class. I must have been doing something wrong initially, but I'm not sure what. The proper way to access it through the media object is as Simon stated previously:
myMedia = new Media("/android_asset/www/test.mp3");
You have to put the full path as the media class defaults to the /SDCARD directory on relative paths.
Simon also has a great write up about using the media class:
http://simonmacdonald.blogspot.com/2011/05/using-media-class-in-phonegap.html?m=1
As for the HTML5 method and using the AUDIO tag, I'm still not certain why it fails on local files. Phonegap's media class works just fine though and is probably a more reliable solution anyhow. Phonegap FTW!
Have you tried pointing the file to the local file system path using "file:///android_assets/01.mp3" assuming your .mp3 is within the applications assets directory?
We had the same problem, the media files, in order to be played, needs to be in the external storage dir. Try to move your HTML and related files to /mnt/sdcard/.
I filed an official bug report on this:
http://code.google.com/p/android/issues/detail?id=41995&thanks=41995&ts=1356643666
Can Android Adobe Air download SWF files with code?
In my flash Web application I can download code for some sub game and run it dynamically.
Now I need to write application for Android with Adobe AIR and leave the same functionality as in Web version, so can I download swf file from internet and then start it via Adobe AIR??
Thanx!
It is possible to download and run SWF files, but with some restriction:
http://help.adobe.com/en_US/air/security/WS485a42d56cd196415cc29732124ef23decb-7ffa.html
We have no access to file system.
There can be two solutions:
http://blogs.adobe.com/emalasky/2008/04/remote_plugins.html
1) Use Sandbox Brigde API (to communicate between separate sandboxes)
2) Sign modules and import it directly to application sandbox
Additional resource:
http://www.hufkens.net/2008/09/loading-remote-swf-files-in-air/