How to load flash in Android? - android

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.

Related

Angular 7 Webview to Android APK

I have developed an application using Angular 7 with Responsive Web Design(RWD). I have converted this application into an Android APK that runs the app inside a webview. However, I have found Some of features of Native app ( like Opening Camera,Open file browser) in android App not working.
What extra effort would be needed to convert an RWD to webview Android App?
Javascript nor code running inside a webview by their nature, do not have access to a device's hardware. You will need to access the OS's native code to be able to use them.
The easiest approach I would recommend is using a hybrid app platform such as cordova.

Flash support on Android

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.

How to download and save a file locally, open it offline using Phonegap?

I am developing a cross-platform application. I came across Phonegap, which supports several mobile devices. But I am new in this field so I'm facing some issues.
I have a requirement, where the user downloads video files from a server and then opens those from local storage from mobile.
So how to achieve this using Phonegap, which should support iOS, Android and Windows.
I have already gone through:
Phonegap - jQuery Mobile - Download/Save/Load File
http://docs.phonegap.com/en/2.0.0/cordova_file_file.md.html#LocalFileSystem
But I'm not getting proper documentation/tutorial. If there are any examples available then it would be helpful to check/debug.
Thanks in advance.
A search on SO shows that on Android there are some issues with HTML5 video and Phonegap:
Phonegap 2.3 and Android with HTML5 video tag in 2013
At least in Window Phone 7 there are some tricks as well (storage path related).
How to play embedded video in WP7 - Phonegap?
Which may explain why there isn't a single multi-platform example which is what I think you are looking for.

Devleoping Adobe AIR Application for Android Using HTML

Can we develop Adobe AIR 2.5 application for Android 2.2 using initialwindow content as a html file
?What I wanted to know was whether we can use HTML content for android phones..The documentation says no..is there any way around this?
You can use AIR's stageWebView to render HTML.

Android Flash support

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

Categories

Resources