AIR apps developed using HTML+Javascript

Hi…
I am working on Adobe AIR.
And now I have 3 options to develop AIR applications 1)Flex
2) Flash 3) HTML+javascript.
But can you please explain me when do I exactly use Flex Or
HTML+JS Or Flash.
One of the reason I know is Flex used for Rich UI
applications
Is there any list of requirements for which one of the 3
option is most suitable to use.
And I have some more questions.
1) Can AIR applications(developed using HTML+Js) invoke a web
service running on a different server
2) Can AIR application(developed using HTML+Js) detect the
connectivity of USB drive (I have developed 1 application that can
detect the Network connectivity and periodically reports the status
I want the same in case of USB(plug & play) connectivity)
3) I have one AIR application that has one HTML form on click
of button I am posting the form Data to Java Servlet using
“air.sendToURL()” as shown
<script src="AIRAliases.js" />
<script>
function sendURL()
var url = "
http://localhost:8080/InvokingServlet/Registration";
var variables = new air.URLVariables();
variables.username = document.f1.username.value;
variables.password = document.f1.password.value;
var request = new air.URLRequest(url);
request.data = variables;
air.sendToURL(request);
alert("Data has been added to Remote DB...");
</script>
The data goes to Servlet and then Servlet thru Jdbc
Connectivity adds the data to database “MySQL” database
named “user”
If I read the data from database and print in Servlet it
displays that to “tomcat server window(log)” But I want
the data from Servlet to send back to HTML page where I can display
it on the same HTML page where user entered his details. So even if
I put the result into some Scope like session or request, but Can I
read that it in HTML+Javascript page .
[email protected]

quote:
Originally posted by:
pravinpatil23
But can you please explain me when do I exactly use Flex Or
HTML+JS Or Flash.
This question gets asked about once a week. You
can find my latest answer
here
and a little searching will dig up more opinions.
quote:
Can AIR applications(developed using HTML+Js) invoke a web
service running on a different server
An AIR application isn't hosted on a server, so all web
servers are "foreign" to your AIR application. An AIR app does get
downloaded from a server, most of the time, but it doesn't maintain
some kind of special connection to that server.
Because of this, there are no cross-domain restrictions in
AIR like you have in a regular web browser.
quote:
Can AIR application(developed using HTML+Js) detect the
connectivity of USB drive
AIR does not allow low-level system access, and has very
little in the way of platform-specific capabilities. So, you'd have
to use a high-level, platform-agnostic way of checking for the
drive, such as by looking around to see what files are available.
Things like USB insert notifications are way outside the scope of
AIR.
quote:
I want the data from Servlet to send back to HTML page where
I can display it on the same HTML page where user entered his
details.
That question isn't on-topic here. Ask on a forum dealing
with JSP servlets.

Similar Messages

  • Books on Adobe Air development using HTML/JavaScript

    Hi,
    I always been of the opinion that one of the signs of a healthy, viable technology is the availability of books and manuals (not just articles or short tutorials online) on how to use said technology. I'm interested in Adobe AIR development for Dekstops/Tablets but I have not been able to find any new books on the topic. Most of the existing books seems to date from 2008 and are targeted towards AIR 1.0-1.5, while the latest version of Adobe Air apparently is 3.5+. So my question is - Where are all the books?
    /Sincere Regards Kris

    quote:
    Originally posted by:
    pravinpatil23
    But can you please explain me when do I exactly use Flex Or
    HTML+JS Or Flash.
    This question gets asked about once a week. You
    can find my latest answer
    here
    and a little searching will dig up more opinions.
    quote:
    Can AIR applications(developed using HTML+Js) invoke a web
    service running on a different server
    An AIR application isn't hosted on a server, so all web
    servers are "foreign" to your AIR application. An AIR app does get
    downloaded from a server, most of the time, but it doesn't maintain
    some kind of special connection to that server.
    Because of this, there are no cross-domain restrictions in
    AIR like you have in a regular web browser.
    quote:
    Can AIR application(developed using HTML+Js) detect the
    connectivity of USB drive
    AIR does not allow low-level system access, and has very
    little in the way of platform-specific capabilities. So, you'd have
    to use a high-level, platform-agnostic way of checking for the
    drive, such as by looking around to see what files are available.
    Things like USB insert notifications are way outside the scope of
    AIR.
    quote:
    I want the data from Servlet to send back to HTML page where
    I can display it on the same HTML page where user entered his
    details.
    That question isn't on-topic here. Ask on a forum dealing
    with JSP servlets.

  • How to implement OData based BASIC Authentication using HTML, JavaScript for Mobile Apps using Apache Cordova/PhoneGap and datajs-1.1.1.js library

    Hello,
    I have an issue with OData based BASIC authentication for iOS App created using HTML, JavaScript, SAP UI5, OData and Apache Cordova/PhoneGap.
    Please check the post here http://scn.sap.com/thread/3527245
    Request you to kindly reply on the above given link.
    Thanks and Regards,
    Suraj Kumar

    Hello Prathik,
    The code which I am using for OData based BASIC Authentication, for my Mobile App is as below.
       var onSuccess = function(data) {
       alert("We are Through"); //Just to check that the OData request was sucessful
       var onError = function(err) {
       switch(err.response.statusCode) {  
       case 403 : {
       window.alert("Error Code - 403, Service unreachable ");
       break;
       case 401 : {
       window.alert("The credentials are incorrect or missing!");
       break;  
    // dataUserName and dataPassword are the two variables, in which I am storing my Username and Password, respectively.
       var connectionRequest = {
       requestUri: "ODATA SERVICE URL GOES HERE/",
       headers: { Authorization : 'Basic ' + Base64.encode(dataUsername + ":" + dataPassword) },
       method: "POST"
       OData.request( connectionRequest, onSuccess, onError);

  • Will Adobe AIR apps work on iOS (Javascript/HTML)?

    Hello,
    I haven't been able to find any definitive answer on whether Adobe AIR apps using Javascript and HTML can work on iOS.
    Anyone know for sure?
    And if so, what happens with the APIs available through these swfs that we currently include:
    networkInfoWrapper.swf
    servicemonitor.swf
    applicationupdater_ui.swf
    Many thanks
    Stephen

    The answer is no. Apps developed for AIR using HTML and JavaScript are not supported on iOS or other mobile platforms. The mobile platforms do include a StageWebView component that can be used to load and display HTML and JavaScript. However, it is entirely different than the HTMLLoader control used on the desktop platforms (for HTML-based AIR apps). You cannot, for example, call any AIR/Flash APIs from JavaScript running in a StageWebView. In general, very little communication is possible between your ActionScript application code and the JavaScript code running in the StageWebView object.

  • HTML AIR apps.. use XHTML and Doctypes?

    I was just wondering, as I'm looking through the documentation on how to create an AIR application using HTML, and the example shows html without a doctype declaration or xhtml syntax.
    I'm just curious if xhtml and doctype should be used or if it even makes a difference.
    I'm assuming that either way, once I get the layout to look the way I want it to, that visually after it's compiled it won't change since the runtime is the same on all operating systems?

    Updated my os
    Brand new Mac ... what exactly needed updating?
    Which OS X is installed?
    Click the Apple () menu top left in your screen. From the drop down menu click About This Mac.
    The version is noted there.

  • Launch native air app(desktop) using URI scheme

    Have a air application for handling files. Is it possible to launch using URI.
    The same question has been asked on stack overflow without definite answer
    http://stackoverflow.com/questions/8956316/open-a-native-air-app-via-url

    It does have half an answer. SWFs can request loading AIR applications so they suggested embedding a SWF on the page which would be able to launch your AIR application. Your link would need to fire off some JavaScript to use the ExternalInterface with the SWF to relay your request inside the SWF. 
    If you really want it on Windows for example then you'll need to register your URI, the example should be self explainatory:
    http://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx

  • App developed using Jdev 3.2 and oracle 9.2: oracle internal error

    Good morning,
    I have developed a JSP application using Jdeveloper 3.2.3.
    Everything works fine under Oracle 8.x.
    One of our customers, a few days ago, decided to migrate to oracle 9.2, but he can't use our application anymore, because every time a javabean accesses the database, Oracle returns:
    ORA-00600: internal error code, arguments: [ttcgcshnd-1], [0], [], [], [], [], [], []
    What I should do, in order to let my customer use my JSP application under any ctual version of Oracle?
    1) Have I to install a newer version of Jdeveloper and simply recompile my application?
    2) Have I to download a special package to deliver to the customer using Oracle 9.2?
    3) Anything else?
    Thank you for your advices.

    Giambattista,
    Check your JDBC driver version.
    You will get this ORA-600:[ttcgcshnd-1] error if you have the JDBC driver 8.1.7.1 or earlier, and you try to connect to an Oracle 9.0.1 or later database.
    So, your app will work when connected to an Oracle8i database, but fail when trying to Oracle9i.
    The solution is to upgrade to the patched 8.1.7.2 JDBC driver, or better yet, use the latest JDBC driver that comes with JDeveloper 9.0.3 (which is JDBC 9.0.1 version).

  • Converting an AIR application developed using Adobe Flash Builder 4 to an .apk file for Android

    Hi,
    Is there anyone would could provide me a link or a simple guide on how to convert an AIR application I developed for the desktop  to an .apk file so I could test it on an Android device? Without using Adobe Flash Builder Burrito...Thx.

    Hi nerostealth
    These link should be able to help you:
    http://blog.omarfouad.com/?p=334
    http://blog.omarfouad.com/?p=365
    regards Mike

  • Compilation of adobe air app that uses ANE fails while using the flex ant tasks.

    The resolution seems to be a hack - which when you rename .ane files to .swc, it works.
    I came across this workaround here: http://stackoverflow.com/questions/11112705/using-ant-mxmlc-task-with-native-extension?rq= 1
    <mxmlc file="${app.root}/app.as" 
                   output="${output.dir}/app.swf"
                   allow-source-path-overlap="true"
                   debug="false"
                   actionscript-file-encoding="UTF-8"
                   swf-version="19" >
                <load-config filename="${framework.root}/air-config.xml"/>
                <source-path path-element="${framework.root}"/>
                <source-path path-element="src"/>
                <source-path path-element="other"/>
                <compiler.library-path dir="libs" append="true">
                    <include name="**/*.swc"/>
                </compiler.library-path>
                <!-- THIS DOES NOT WORK -->
                <compiler.external-library-path dir="nativeExtension" append="true">
                    <include name="**/*.ane"/>
                </compiler.external-library-path>
            </mxmlc>
    However, if I rename all the .ane files in the nativeExtension directory to .swc the following change works..
                <!-- THIS WORKS -->
                <compiler.external-library-path dir="nativeExtension" append="true">
                    <include name="**/*.swc"/>
                </compiler.external-library-path>
    Has this issue been addressed?
    I'm using the following:
    - Adobe AIR SDK & Compiler (version 3.7) for Mac OS X
    - ActionScript Compiler 2.0
    - Apache Ant wrapper located in "AIRSDK_Compiler/ant/lib/flexTasks.jar"
    Let me know if any other details will be helpful.

    I'm using something like this in my build.xml (inapp.purchase.flash.swc is the flash wrapper for the ANE):
                <external-library-path dir="${basedir}/extensions/inapp.purchase/inapp.purchase.flash/bin" append="true">
                    <include name="inapp.purchase.flash.swc" />
                </external-library-path>
    I don't think you need ANE when building swf component of your app. ANE is only required for packaging. By linking with external inapp.purchase.flash.swc you're just telling action script compiler that above symbols will be defined later (in ANE).

  • Voice recognition support in mobile air application developed using Flash CS5.5

    I want to develop an android application via Flash CS5.5 which takes the command based on voice or convert voice in to text. Voice recognition support is available in android SDK but it is not available in latest Air SDK.
    I tried on Google to find out how to develop Voice recognition mobile application in Flash CS5.5 but did not find anything. There is some example/video which shows hack around native android code but this is for Flex not for the Flash.
    Waiting response?
    Thanks
    RTY

    Hi Rty,
    I think you should use  a native extension.
    Have a look at this link:
    http://extensionsforair.com/extensions/speech-recognition/

  • Flash cs 5.5 app development using a windows machine?

    can any one tell me if it is possible for me to buy a publish certificate for Flash CS 5.5 for windows so that i can publish some games for the iPhone in retina display supported? also the other question is that, i have heard that apple will not allow ipa files published using a windows machine such as Flash cs 5.5 even if i buy the flash publish certificates. Is it true that once i buy a developers lisence all the features such as publishing for app store and the publish certificate for Flash CS 5.5 will be at my disposal? or do i have to purchase them again seperately and what will be the total cost for all this?
    And even if i can publish it to the app store, since I am from the country Maldives, can any one guide me to how I can register and receive the payments for the profits I earn from my apps? I use windows 7.
    Any help regarding this would be greatly appreciated.
    Thanx.
    NaaffaX

    Hi , I am having the same question,I am having a MAC and XCODE programme.
    Can any one helps me to let the XCODE opens non MAC files for instance flash ipa.
    I am new in XCODE , could you help step by step so I can open the flash IPA CS5  file.
    I will learn Xcode, but I want to publish some Apps made by flash since I spent long....Time...
    Then from now I will start from the scratch using XCODE. I think it is easier as some developers adviced me.
    one of my is at my site www.kalmne.com
    regards.

  • HTML/ Javascript Air App as Screensaver

    I am trying to find out how to use a Air app developed using HTML/ JS as a screensaver. All the information I have found has been in other dev platforms, ie flex or AS, and I am unable to translate it to what I am doing.
    Any help pointing me in the right direction as far as docs/ api's to read would be greatly appreciated.
    Thank you in advance for your help.

    There's no direct support for creating screensavers with AIR. (Now if you are talking about a fullscreen application, that is, of course possible -- look at the Stage displayState property in the ASLR: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.htm l#displayState -- but that's not really a "screensaver" per se.)

  • Convert HTML/javascript AIR app to flex-based AIR app?

    Hi all,
    I've already built an AIR app using HTML/javascript that I
    would like to monetize.
    I would like to use O2app's E-Commerce framework, which right
    now only supports Flex-created AIR apps.
    My question: Is there a simple way to "convert" an
    HTML/javascript AIR app to Flex 3 format? I'd rather not have to
    rebuild the app from scratch in Flex 3 if I don't have to. :)
    Thanks,
    Al

    Hi,
    There's no simple way to convert an HTML AIR app to flex.
    But it is possible to create HTML Root windows from a Flex
    AIR App. By root window, I mean the same kind of window that is
    launched when you launch an HTML AIR App.
    For more info, look at the HTMLLoader.createRootWindow()
    call. (This will be available from a Flex AIR app as well)

  • AIR apps using Stratus - protecting developer key

    How do we deploy an AIR app that uses Stratus and protect our developer key, since AIR is not encrypted?

    Except that the "somehow" is really not going to happen, because the code can be decompiled, and Adobe has not provided any way to keep some protected data on the client side OR even uniquely identify a particular instance of an AIR app. Unless I am wrong and someone can explain how...

  • When to use Flex Or Flash Or HTML-Javascript

    I am Experimenting with Adobe AIR. I know AIR Applications
    can be developed either using Html-Javascript Or Flex Or Flash.
    But can anybody HELP me understand when do i exactly use Flex
    or HTML-JS.
    Well i know one of the reason to use Flex is to build
    RIA's.What are the other Possible reasons ?? can i draw a Decision
    Boundry between them??

    The best reason to choose one tool over the other is that you
    have something working in that language already, and are just
    extending it into the AIR world.
    If you're starting a new project, you then have to balance
    tools you have and know how to use against the strengths of the
    tools. A tool you don't know has to have some pretty compelling
    strengths to make you take the time to learn it, unless you're just
    doing it for fun. If not for fun, the effort has to pay off, yes?
    Very generally speaking, here are the strengths of the tools,
    as I see it.
    For HTML + Javascript, just look at what you see on the web
    today. People are pushing browsers pretty hard these days with web
    apps, so that gives you a good first-order idea of the power of
    this tool set. The AIR environment does give you some more power,
    not just in the AIR APIs, but also in having a single modern
    browser to develop for, so you don't have to limit yourself to IE6
    compatible code. Still, it's not yet the equal of the other tools
    in some areas.
    Flash's main advantage over the others is in applications
    with lots of graphics and animation. The reason for this is purely
    because that's what the Flash authoring environment is geared to
    produce. It's not got a very good ActionScript editor, and as a
    consequence there's a practical limit on how much code you want to
    write in a given project. It's not a question of whether you
    can write a 20,000 line ActionScript program within the
    Flash environment, it's a question of whether it's better done in
    another tool.
    One of the best "other tools" when you end up with lots of
    code is Flex. With the "Builder", you get Ecipse, and without, you
    are presumably using some other worthy programming environment.
    But, you give up the graphic and animation tools from Flash, and
    you give up a lot of the simplicity of HTML + Javascript.
    You can combine them, of course. You could build a whizzy GUI
    control in Flash to use in a Flex application which is hosted
    inside a web page, for instance.

Maybe you are looking for

  • Proforma Invoice and Advance Invoice

    QUESTION ======== In Purchasing and Payables - when purchasing organization receives Proforma Invoice from supplier it can not make advance payment before receiving advance invoice. The work flow is as follows: Real Business Process: Purchase Order f

  • Best 37-40" HDTV to use as 2nd monitor?

    Hello all, I have a MacPro 2010 3.33ghz 6-core I use a Samsung Syncmaster 305T 30" display for my main monitor, which I love. Can't say enough good things about it. I am an audio-for-video professional, and display my QT movies on a 32" Samsung LED U

  • How to store material in spite of open lot

    Hi everybody, I havbe questiopn how to manage following scenario: We have an open lot for initial sample testing. Initial testing is delayed for let say 30 days. In this period there are further incoming shipments with same material from same vendor.

  • Receive "500 Internal Server Error" message

    I receive the following message when trying to login to a website. I've deleted all cookies, passwords, etc associated with this site with no luck. Internal Server Error The server encountered an internal error or misconfiguration and was unable to c

  • After Effects CC Screen Blurry Mac

       As you can see the preview screen is VERY Blurry for me and I need help Its apperently like this with everying 0_0