I am trying to play one SWF (flash) file in my application deployed on Android 4.2.2. When I save the file on file system, and open it with browser, it works well. But when I try to open the same in webview in my application, it does not play the swf. It just shows a broken file type small image. I have searched stack for the proper answer but any answer I found here is very old and not working for me, this must be because of the non-support of swf on new android version. I have also tried after installing the old flash player, but it shows just the first frame of swf.
webview.getSettings().setPluginsEnabled(true);
Credits to joren: Load an SWF into a WebView
It sounds like you need an embedded flash player that plays the SWF rather than simply embedding the SWF. I haven't flashed around in a while now and certainly don't do it on Android but that's my immediate thought. (EDIT - The other answer here nailed it: plugin)
Seems like installing Adobe Air player on device is the only solution. Please suggest if any better way is available.
Related
When I try upload files opening via standard Android browser, I can't do it. I read in internet, that this trouble of webview.
My system is 4.2.
Is there way to solve this trouble, maybe install any patch? Or maybe in another version of android there is no this problem and the easy way is updating to new system. How to make webview to work forcibly?
Please don't recommend to use any another browser, I need standard.
I have seen at least 20-30 posts on SO regarding this but still haven't got the answer. Can we load an swf file in Android webview or not? I have an HTML page with swf object embedded in it. All HTML content loads except the swf file. I have also installed the Flash Player from Adobe archives on Android device(2.3) but it doesn't work.
In this post, it doesn't work. But the same method is working on this post. Why?
My aim is to run a sencha app on Android device containing the above HTML file, but first I'm unable to load that HTML file with swf content using a native app.
Short answer: when Flash was supported on Android, it required to enable plugins support on the WebView. But it's not supported anymore since Android 4.1 (Jellybean). And Android 4.4 devices use a new WebView implementation which is garanteed to not support any plugin.
If you want this to work, you have to install Flash on an older device with Android 4 or lower.
I am trying to write a sample android program to read an epub file which is embedded video,but I am not sure whether WebView can work?
I believe that android only starts with html5 by default at ICS? I could be wrong but you would probably need to get some OS stuff and work from there, maybe look into opera or dolphin browser, not sure if they have source code available but just along those lines, you need to find a OS browser with HTML5
Ineed to play a short MP4 video on my android app I'm searching info about how to load mp4 videos but i can't find the way to do it on Android 1.5. My app sould be compatible from Android 1.5 to 4.0
I tryed with a lot of tutorials from google, from stackoverflow, from android developers groups, etc.., but i can't make working any of them. For example, now i'm trying with the VideoViewDemo from android developers: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/media/VideoViewDemo.html But i can't make working the code, i dont know what is the problem, i just cant play mp4 videos with that code. And also i can't with all the code examples i find on internet.
I have a video on my ASSETS folder, and i just need to play the video, only this. I can not believe that doesn't exists a simple and quick way to do it.
If someone can give me a tutorial or a working example of playing mp4 videos on android i will apreciate it a lot.
Thanks
use this link http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo_Video.html
path = "/mnt/sdcard/file.mp4";
it will work fine.
#AndroidUser99 you need to use following thing to work mp4 and other in android.
1:Rockpler free coder may use for android
2:android ffmpeg
3:some SO Question for ffmpeg
you can also download FFmpeg library used before 1.7.0 from this link and use it in your project click here
Hope you will get idea to play mp4 on android 1.5.
HI, i want to load a flash file in my android application. Can any one guide me how to do?
A flash file requires the Flash Player runtime to...well...run. The ability to run flash files is available to the Android platform in two forms.
As a plugin that renders Flash content in the native Android web browser(just like your browser on your desktop computer), or by utilizing the Android UI webView API and loading an HTML file with an embedded Flash file. In other words, create a webview in your Android application and load it with the remote or local URL of HTML file with the embedded flash content. Essentially you are putting a stripped down version of the Android browser into your application to render the Flash file.
Adobe AIR for Android. You could rewrite your Android application into a Flex Mobile Application, if your application relies heavily on Flash, and then run it directly as and AIR application and just us the AIR API's to load it.
A quick search on Google will show you code examples on how to write the HTML file to embed the Flash file, and it will tell you how to us the Android API webview to load said HTML file.
Good luck, let me know if you have any trouble.
You need Android 2.2 or later. It has built-in flash support.
If you are running Android 2.1 you just cant do it.
Flash is only available on Android 2.2, so you have to upgrade it first.