How to restart Air application

I have the following questions any help would be appreciated.
1. Is there a way to restart Air application
2. How to get application directory path
3. How to get application executeable name i.e.
(myFlexApp.exe for windows)
Thanks in advance.

I know air application has .air application, but after
installing the air application its extension is no longer ".air"
for windows its extension become ".exe" for mac and linux it is
some thing else.
secondly global Object Application has limited functionality
it doesn't provide the path of directory where application is
installed and complete name of application with extension, someone
can change the executable file name manually in installed
directory, in that case Application.application.name + ".exe"
doesn't work....

Similar Messages

  • How to restart swing application by using shotcut key (ex :CTRL+ALT+ENTER)

    Hi,
    Currently my swing application freezs some times, it will not come back, only option i have is restart.
    Can some one can help me how i can implement short cut key (CTRL+ALT+ENTER) that can restart my application. (in any state, my action should allow to restart).
    Thanks
    Anjan
    Edited by: 807057 on Nov 2, 2010 9:16 AM

    Currently my swing application freezs some times, it will not come back,I would work on fixing that problem. Sounds like you aren't using Threads properly and are blocking the EDT. Read the section from the Swing tutorial on [url http://download.oracle.com/javase/tutorial/uiswing/concurrency/index.html]Concurrency for more information.
    how i can implement short cut key (CTRL+ALT+ENTER) that can restart my application.Within Swing this would be done by using "Key Bindings". A section on Key Binding is found on the tutorial link from above. However, is Swing actually is frozen then this won't work.
    Therefore this would need to be done at the OS level, which java doesn't support. You would need to use JNI, which I know nothing about.

  • How to restart an application

    My fellow WD explorers,
    Can anybody please tell me how to restart a WD application?
    What I want is the following: if I'm on a certain view within a WD application and want a button which should start the application again from scratch...
    So, everything should be initialized as if the application was started for the 1st time.
    Thanks in advance for your recommendations.
    Wouter Heuvelmans

    Hi
    The best thing you can do is you create an exit outbound plug to your window
    and give the parameter Url of type string and give your application name while
    firing the outbound plug.
    this method is used to get the url of your application
    CALL METHOD cl_wd_utilities=>construct_wd_url
    EXPORTING
    application_name = '<your application name>
    IMPORTING
    out_absolute_url = lv_url.
    /people/thomas.szcs/blog/2006/07/18/basic-concepts-150-url-semantics
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7015b1f9-535c-2910-c8b7-e681fe75aaf8
    Regards
    Abhimanyu L
    Message was edited by:
            Abhimanyu Lagishetti

  • How to restart single application server(ABAP Stack)without effecting users

    Hi Experts,
    I Want to restart  one application server(ABAP Stack) in my clustered environment with out effecting endusers. I believe can be done it by transfering users request to other application servers. Please let me know the steps to perform this activity.
    Cheers
    DV

    Hi,
    Yes, you need to wait for the users to disconnect from the app server and remove the server from the logon groups.
    You should also remove the batch processes with an operation mode switch.
    Beware also if you have HTTP applications and you use a web dispatcehr for load balancing.
    Regards,
    Olivier

  • How to restart java application

    Hi ,
    I have an application which have some parameters ( These parameters are configured in APP )
    I want if the config values changes then our application should be restarted .
    How can I do it programmitically
    Thanks and regards
    Anshuman

    Let your program detect the changes and exit with a defined return code.
    If the running script detects the Java program's having stopped with this return code,
    it restarts the program.

  • How to restart Java Application from state when system crash

    I want to know about the API that provide mechanism to save your program state peroidically or any specific task completed of application and if system crash and next time when application restart it should be started from previous state.
    I required solution urgently plz. replay as soon as possible

    write it yourself.
    Serializable Interface, FileOutputStream, ObjectOutputStream ... that'd be a start for you.

  • Building AIR Applications with the NetBeans IDE

    Hello Everyone,
    Here's a link to screencast showing you how to Build AIR
    Applications with the NetBeans IDE.
    http://xwisdomhtml.com/netbeans-and-air.html

    Neat!

  • [AIR + AS3] How to restart native desktop AIR application?

    Hello,
    I develop AS3+Air application on desktop. I have problem with restart feature. Is it possible to do it without making externall app which only load a main swf file?
    I found only one code solution.
        var mgr:ProductManager = new ProductManager("airappinstaller");
                                  SmartLogManager.info(NativeApplication.nativeApplication.applicationID);
                                  SmartLogManager.info(NativeApplication.nativeApplication.publisherID);
                      mgr.launch(NativeApplication.nativeApplication.applicationID + " " + NativeApplication.nativeApplication.publisherID);
                                  NativeApplication.nativeApplication.exit();
    but this only close app, no restart.

    document.location.href='';//resets the program
    It seems to be the only quick solution to restart the program.
    It comes with one major downside though.... It can cause memory leaks each time you call that function.

  • How do I keep applications from automatically opening when I power up my Macbook Air?

    How do I keep applications from automatically opening when I power up my Macbook Air?

    When you Shutdown or restart, uncheck this option.
    Regards,
    Captfred

  • How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    If the data is on a remote server (for example, PHP running on a web server, talking to a MySQL server) then you do this in an AIR application the same way you would do it with any Flex application (or ajax application, if you're building your AIR app in HTML/JS).
    That's a broad answer, but in fact there are lots of ways to communicate between Flex and PHP. The most common and best in most cases is to use AMFPHP (http://amfphp.org/) or the new ZEND AMF support in the Zend Framework.
    This page is a good starting point for learning about Flex and PHP communication:
    http://www.adobe.com/devnet/flex/flex_php.html
    Also, in Flash Builder 4 they've added a lot of remote-data-connection functionality, including a lot that's designed for PHP. Take a look at the Flash Builder 4 public beta for more on that: http://labs.adobe.com/technologies/flashbuilder4/

  • How to embed and play mp4 video in HTML AIR application?

    Adobe Air HTML / JS application compiled from SDK command line.  I am not using flash pro or flash builder to create the application.
    I was using dreamweaver but the dw air plugin seems to have stopped being developed so I switched to using the command line tools.
    I am creating desktop air application that has embedded mp3 audio and also I want to embed mp4 video.
    Using jQuery and the AIR js plugin I am able to play audio via buttons hooked up via jQuery and the AIR js plugin from the SDK.
    What I am doing is creating proofs for clients in AIR and sending link to the client to download the application.  I embed the media because I do not want to place them on a website where it could possibly be seen by non-clients and get picked up in the SE's.
    I am finding it hard to understand the AIR process for playing video.  I read that it is the same procedure as audio but it does not work.
    If it was hosted on youtube or somewhere embedding the web player would be simple, just copy paste some code and it works.  When actually embedding the video say mp4, f4v, mov, wmv or similar file formats I can't get AIR to play the video.  Audio, not a problem it works great.
    I would like to do the following with video.
    Embed the actual file in the AIR app.  I can do this, it gets embedded.
    Play, pause and stop the video - Can't get this to work
    Get the current stop point and be able to start the video by sending a start point - This is all working with audio I just want to do it with video.
    I have searched the forums, the search engines, youtube and read through the documentation on Air but the video does not work at all.
    I need code samples and direction on how to make an embedded video play inside of a desktop air application using the HTML / JS air model. I am using the command line tools to create the air package and test the air app.
    Please help if you have figured this out.
    Thank you.
    Not sure if this matters but I am using Windows 7 Pro 64bit as my development machine.

    In addition I also can not get html5 video to play in the adobe air app.  Would this issue be tied to the above?

  • How to embed icon in dmg of MAC OS in air application?

    hi
    How to embed icon in dmg of MAC OS in air application? while in windows application it working file if  i set <icon> tag in windows application's .xml file.....
    Please reply

    solution ::
    add this code in windows app of AIR
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication 
    xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" creationComplete="init()" layout="absolute" xmlns:local="*">
    <mx:VBox>
    <mx:Label text="Jay Mahadev" fontSize="32" />
    </mx:VBox>
    <mx:Script>
    <![CDATA[
    private function init():void
    if(NativeApplication.supportsDockIcon){ 
    var dockIcon:DockIcon = NativeApplication.nativeApplication.icon as DockIcon;NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE,undock);
    //dockIcon.menu = createIconMenu();
    else if (NativeApplication.supportsSystemTrayIcon){ 
    var sysTrayIcon:SystemTrayIcon = NativeApplication.nativeApplication.icon as SystemTrayIcon;sysTrayIcon.tooltip =
    "Stopwatch";sysTrayIcon.addEventListener(MouseEvent.CLICK,undock);
    //sysTrayIcon.menu = createIconMenu();
    public function undock(event:Event = null):void{stage.nativeWindow.visible =
    true;NativeApplication.nativeApplication.icon.bitmaps = [];
    ]]>
    </mx:Script>
    </mx:WindowedApplication>
    and also in windowapplication.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns="http://ns.adobe.com/air/application/1.0">
     <icon>
    <image128x128>/icons/128x128.png</image128x128>
    <image48x48>/icons/48x48.png</image48x48>
    <image32x32>/icons/32x32.png</image32x32>
    <image16x16>/icons/16x16.png</image16x16>
    </icon>
    </application>
    Reference Link :::
    http://www.adobe.com/devnet/air/flash/quickstart/articles/stopwatch_dock_system_tray.html

  • How to save the date in Sqlite in Adobe Air application

    hi friends,
    i am doing a flex Adobe AIR Application with SQLITE Data base,in that i want to save Date in the following format DD/MM/YYYY, but in my TABLE i gave the data type is DATE,
    So it store the value like this Sun Dec 2 00:00:00 GMT+0530 2012.i want to store the value in DD/MM/YYYY.How to do that?
    looking for useful suggession.
    Cheers,
    B.venkatesan.

    Hi, maybe cannot help much on this since I have not much experiense on handling SQLITE in AIR.
    But I know there are a command/example for reading SQL:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/data/SQLConnectio n.html
    http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7d49.html
    And in mxml you should have an id for each individual TextInput component, also have a button:
    <Button click="updateSQLHandler(event)"/>
    When the button is click the handler function is launched.
    The updateSQLHandler(event:MouseEvent) is a script that read the each individual TextInput component by getting (id of textinput component).text.
    Then, you create a String varible that is an SQL commands with the texts in the form, and update the SQL database following the below using the execute() command (refer to http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7d49.html ).
    Hope this help.

  • How to create a popup window to load HTML page in AIR application without using any mx or spark?

    How to create a popup window to load HTML page in AIR application without using any mx or spark components?
    I need to load the HTML page in popup in AIR application without using any of the <mx> or <spark> components. I need to open in the application itself not in the browser.(If we use navigateToURL() it will open in th browser)

    Can we achieve this? can somebody help me on this scenario..

  • How do i update Installed AIR Applications? // General Questions

    Hi,
    first of all, i'm completly new to AIR. However, i made my way through your product documentation and i'm now able to deploy AIR and a AIR Application (SFDC Chatter) and register it.
    Works fine so far, but some questions:
    - How can i update installed AIR applications? If i just try to re-install it, the installer will fail with exit code "9"
         -> How can i update them directly? If this is not possible
          -> How can i uninstall AIR applications in a large enterprise environment?
    - Where is the ARH Tool that is described in your product documentation?
    - When installing AIR as SYSTEM User (I'm using SCCM) where is the logfile?
    - Do you recommend updating AIR on a regular base? Are "older" applications compatible with newer AIR Versions?
    Thanks for your replies!
    Ben

    Hi Ben,
    I'd recommend taking a good look at our captive runtime option that is available in AIR 3.0 and higher.  While you have to roll your own installer (and updater) this could be as simple as a zip/batch file combination.  It also allows you to use the runtime that you prefer and not be dependent on what the user installs or uninstalls.  You do have to be mindful of security implications, but it's definitely the way I'd go.
    http://www.adobe.com/devnet/air/articles/air3-install-and-deployment-options.html
    http://help.adobe.com/en_US/air/build/WSfffb011ac560372f709e16db131e43659b9-8000.html
    As for updating, it should be as simple as increasing your app descriptors version number and installing again.  This article explains how you can also use our update framework: http://www.adobe.com/devnet/air/articles/air_update_framework.html
    The ARH tool can be found here:
    Mac: http://airdownload.adobe.com/air/distribution/latest/mac/arh
    Win: http://airdownload.adobe.com/air/distribution/latest/win/arh.exe
    Linux: http://airdownload.adobe.com/air/distribution/latest/lin/arh
    Thanks,
    Chris

Maybe you are looking for

  • ESI is not deducting for an employee who has joined after 23?

    Dear All, With reference to issue, ESI is not deducting for the employee who has joined on or after 23 of march month. Ex. He has gross of 9400 and /3EA is 2729 and the value of contribution is 45. But ESI is not deducting. But for other employee sam

  • Can no longer print in duplex?

    I used to somewhat frequently have issues printing in duplex. I go to file->print, click on printer properties and choose two-sided printing, and click print and voila, most of the time it prints in duplex. However since upgrading to adobe X I seem t

  • How to install adobe reader on my ubuntu computer?

    I have an ubuntu 12.04 and I try to install adobe reader. Can anyone help me?

  • Replace MIC in mass mode

    Hello SAP Guru, I want to replace one mic in mass for that i got transaction QS27 but when i go to overview screen system show me lock in first coloum i tried mic in refrance mode & copy modal mode also but not able to replace it please suggest. rega

  • Folder security

    I'd like to have a folders default behaviour such that items created in it are not visible to any users unless explicitly granted. Can someone advise on what settings are needed - I have the 'make public' flag unchecked, and the only row under the 'a