Can Android applications can use flash content in them?
From android 2.2 (Froyo) flash is supported.
If you want to use it in an app you could use a WebView
Well you can instantiate a web browser object or similar, and have that open a Flash swf file from a website or local storage, so yeah, in theory you could have flash inside your app...
Don't forget that AIR is supported by Android now too.
http://blogs.adobe.com/air/2010/04/adobe_air_applications_for_and.html
Related
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 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.
since setPluginState method is depreciated after api level 8,i think i get an error saying plugin could not be loaded into kitkat device. I used it to support flash content in my application,now kitkat doesnt support flash i know,but ive installed an hacked flash apk which should work i think,but how do i make webview load the plugin ?
is there any alternative to setPluginState that we can use to load the flash plugin in webview?
im told,dolphin browser has made it done,so there could be an way to do this.
any help would be nice..
This isn't possible in the Chrome based WebView shipped with KitKat I'm afraid.
This method has been eliminated from Android 4.3,So if you need to maintain compatibility you have to compile the project with Android 4.2 and add backward compatibility library through eclipse.
Hope this helps.
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
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.