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.
Related
I made an app in html5, css3 and with jquery then i convert it in apk via intel sdk now i want to add admob on it. Anyone know best way that how i can add admob in html site.
I strongly doubt this is possible.
I have a dynamic HTML5 document that does not contain any external resources (no images, css and scripts are coded inside of document). This HTML5 application is working fine with internet browser. I was wondering, if it would be possible to convert this HTML5 application into standalone Android application, so it can be executed directly without browser. Please advise.
Create an Android app using Eclipse.
Create a layout that has a <WebView> control.
Move your HTML code to /assets folder.
Load webview with your file:///android_asset/ file.
And you have an android app!
Edit:
PhoneGap has now been discontinued.
Original answer:
You could use PhoneGap.
http://phonegap.com/
http://docs.phonegap.com/en/2.1.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
This has the benefit of being a cross-platform solution. Be warned though that you may need to pay subscription fees. The simplest solution is to just embed a WebView as detailed in #Enigma's answer.
You can use https://appery.io/
It is the same phonegap but in very convinient wrapper
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.
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