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/
Related
web-crawler written in python3, webdriver.Firefox() or webdriver.Chrome(Path) allows to open the browser and extract something. But, what if this crawler (written in python) exported to Android either using Kivy or using some other way Will .apk file work? Will the browser will open there too? In .apk file, we cannot not allow to open the browser. Then how the web-crawler will work? Any other solution except headless browsing that can work in android application ?
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.
When you say android application I understand its a .apk executable. But When you say developing android application using html, does it mean we still get a .apk file or when we develop using html, is it then called as android web development, which means you won't get a .apk file. But you get a html file that runs on android browser. Is that a correct statement. Because apart from Java and C# Xamarin which will produce a .apk file, I dont think html--->.apk file never happens.
So .apk file means apps similar to windows applications, and using html means we
create a mobile web application?
does it mean we still get a .apk file or when we develop using html
It can, if you are using tools like PhoneGap.
or when we develop using html, is it then called as android web development, which means you won't get a .apk file
An HTML5 Web app, particularly with offline caching, can feel a bit like an app. However, it would be written as a Web site or Web app and distributed as such, not distributed in the form of an APK.
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 made a AIR apk using action-script in Flash builder and the same i wanted to run in android which is running perfectly. but I am not able to open local html file that i have put in sdcard. so i want to open an local HTML file using an AIR app. Please suggest!