Run an AIR app headless?
Hi there,
So my problem is this: We created an awesome reporting tool built using Flex. Currently the user can output a PDF of their report through the app. We used AlivePDF to accomplish this. Now product management has upped the ante wanting to generate the same reports on the server at a scheduled time.
I'd thought of using an AIR app to generate the same output but I'm not sure where to start or if it's even possible to run the AIR app headless.
Any insight would be much appreciated
Codeflayer
Yes, I also just researched and believe executing a Flex app in headless mode isn't possible. Here is Labriola's reply to a similar question someone had:
Let me address the headless one. Neither Fluint, FlexUnit nor Flex
itself works in a headless environment. That is because Flash Player
will not work headless. On Linux, it is possible to run a virtual
framebuffer which fools the Flash Player into starting even without
appropriate video display.
You can find instructions about how that might work here:
http://groups.google.com/group/fluint-discussions/browse_thread/thread /b4be801162a00dfc
ref: Michael Labriola: http://forums.adobe.com/message/2211401
Did you come across this post in your search? Are you running Linux on your server? Anyways, goodluck.
Similar Messages
-
Running an AIR app as a service.
Hi, I'm trying to use the ServerSocket class in AIR to make a server of some sort. The problem is that I cannot get it to run as a windows service. I used "sc create" to create the service. I don't call nativeWindow.activate, so there shouldn't be a UI. The service is set to log on as my user. But when I try to run it, I get "Error 1053: The service did not respond to the start or control request in a timely fashion".
How can I get it to run as a service?
Thanks,
SeanHi Sean,
Unfortunately, I don't have an answer to this question, but I'm hoping others in the community can help out. Running AIR as a service has been a popular request, but not something we officially support at this time. There have been a couple of feature requests made for this that I'd encourage you and others interested to go vote on:
Run AIR app as a service on a server machine without user logon on the machine
Register and run as Services on OS
Googling "Error 1053: The service did not respond to the start or control request in a timely fashion" returns quite a few hits, with responses ranging from increasing time out lengths, changing logon account types, and many other service property tweaks.
Please let us know if your able to get this to work and hopefully others can contribute their experiences as well.
Chris -
Run Adobe AIR app as Windows Service
I have an app which monitors an RSS feed. Upon an emergency,
the RSS feed is updated. The app detects the change and launches
(from the taskbar/dock) full screen, plays an alarm sound and
displays the message.
Is it possible to run this app as a service (I know that
there are several software options to enable this) - my question is
directed towards launching the full screen warning. Can I utilize
the windowing API before a user logs in if the app runs as a
service?
I have tested this using a couple of those software options
with no success.
Does anyone else have any ideas or answers?John, did you ever find a solution for running an Adobe AIR app as a Windows Service?
-
How to run Adobe Air App as Windows Service
I am working on Adobe Air application. Everything about coding and configuration have been good so far but I have some major road blocks down the road:
1. Schedule my application to run at certain time.
2. Run the application in the System Tray like a Daemon app
Does Adobe support for configuring the application to run in System Tray like a Gmail notifier app now? If it does, is it possible for me to have it configure for both Windows and Mac systems?
If anyone has any pointers or tips, please feel free to let me know. Thanks in advance.Last night I got some time to try out your example from "Working with the dock and the system tray"
It is really impressive to see how easy you can animate the icon on the taskbar, but it doesn't particularly achieve my goal to have a cross-platform taskbar app running.
I tried to work with Java yesterday and got their Taskbar module working on both platforms. It solves the basic issue. But then I realize Java is missing the Webkits Adobe Air is offering. So I need two Apps in order to achieve the goal to re-use my web app on the desktop. Now I am considering to learn more about the extend feature you mentioned to let the Java application works like a remote control for the Air application's instances.
So here are some of my current concerns: is it possible to be able to have input from java app into air application's elements? Does Adobe's intergrated runtime support incorporating Java as part of the app like it does with SWF and javascript? Or is there any bridge I can use to have the two applications communicate with one another? -
AIR runtime installed - run an AIR app from USB?
Just wondering if it would be possible to create an AIR application that can run from a USB stick, assuming the target system has AIR installed. Basically, is it possible to skip the 'install' phase of the application (not the runtime), and if so, what are the resulting limitations if any? (FileType associations don't get created or something, etc?)
Cheers,
JohnNo, this isn't supported.
-
How to run an AIR app from Javascript in browser?
Does anyone know how to do this?
What if you have a singleton class containing the list of items that were clicked on. When an item is clicked, it is added to the list of clicked items. Inside the renderer, access that object and check to see if the item being rendered is in the list, if it is, set the style to look like a visited link, if not set it to look like something not visited.
-
Running previous versions of AIR apps in AIR 2.7.1 runtime
I'm unable to start and run any AIR apps built using previous SDKs in the latest AIR 2.7.1 release. Basically either the application will not start at all or will try and launch the window and close immediately. I'm using Flex 4.5.1 IDE and even updated the AIR SDK to 2.7.1 to build my app, changed the dicriptor version tag to 2.7 in the app.xml file as well but to no avail, Am I missing something or did Adobe drop the ball here!?
I'm running older apps with both 2.7.1 and the AIR 3 rc build. It sounds like you're running into something specific to your system. Do you have an example .air file (or project) you can send me ([email protected]) so I could take a look?
Thanks,
Chris -
Problem running AIR app on windows server 2003
Hello,
I have an AIR app that I am trying to run from a Java program under Windows 2003. (It runs perfect on XP and Vista.)
The problem is whenever I try to run the AIR app, it runs "Adobe AIR Updater.exe" which causes the app to not run. And both the process stop responding. I can see them both in Task Manager. I disabled the AIR automatic updates using the Settings Manager application but it still runs the Adobe AIR Updater.exe file.
Any help to resolve this problem would be highly appreciated.Not sure about copying eulaAccepted file from one location to another - that would really depend on which user account your service is running under.
A better approach (IMHO), is to open the services window (My Computer | <right-click> | Manage, then navigate to Services and expand the tree) so you can see your service on the RHS.
Stop your service, then inspect it's properties, select the 'Log on' tab, then check the checkbox which says "Allow system to interact with desktop". Apply the change, then restart your service.
next time the AIR runtime prompts you to accept the EULA, the window will appear on the screen, so you can click "I accept".
After accepting, reverse the procedure which allowed the service to interact with the desktop, and make sure that you have modified the registry to prevent AIR from updating as mentioned in:
http://help.adobe.com/en_US/AIR/1.5/air_admin/WS5b3ccc516d4fbf351e63e3 d11c0f59823a-7ff0.html
You should be all set. -
We have delivered an AIR app to a client, and they are trying to run it on a Citrix XenApp terminal server. Part of the app makes use of the AIR browser and sessions. When the Citrix user is of sufficient privilidge (windows user), the app runs fine. When they attempt run the AIR app as an anonymous citrix user, it fails. The user cannot login to a page (presented inside the AIR browser). Any ideas?
This discussion (http://forums.adobe.com/message/208488#208488) says that the AIR browser stores cookies and cache in the "Temporary Internet Files" directory, like IE does. Is this true? If the Citrix user did not have permission to write to that directory, could that cause problems? Does the AIR browser need to be able to write anything to the file system? Will the AIR browser try to store session cookies on the filesystem, or do they just stay in memory? I have to assume that this Citirx guest user has no file system priviledges, so we may need to loosen that to get the app to work. Any pointers would be appreciated.
Thanks,
BryanDid you test in the Simulator for 2.1?
I tested it in the Simulator for 2.1 and it works fine.
HOWEVER - my app doesn't work in in 2.1 for various people either. (Two emailed reports, which means probably a lot more are getting hit by this and not emailing)
And I really don't use any undocumented APIs. I do set a transform on a view, however.
My guess is they fixed a bug to do with transforms and views, which broke my App in 2.1. Sadly, this fix doesn't seem to be on the Simulator.
So I can't verify unless I update my iPod Touch to 2.1 .. which I can't do because iTunes says my version is apparently up to date for 2.0.
Crazy. Gotta find a way to get 2.1 on my iPod touch. Any suggestions? -
An AIR app to run a project fullscreen (alpha)
Hi,
I made this small AIR application to display a Catalyst project in fullscreen.
It s making the code very crappy and the look is crap too. Anyway, to my mind, this is just to show that Flex can produce resizable application ...
An example here ---> http://peopleinaction.free.fr/catalyst/resizable/Prototype.html
The AIR application is attached to this thread.
Use :
- create an empty Flash Builder project
- run the AIR app
- put the path to your Catalyst project (FXP file)
- put the path your new Flash Builder project
- on the AIR app, click on "Import Catalyst changes"
- from the Flash Builder project, launch the application called "Prototype.mxml" in the "src" directory
- from your running project, click on the checkbox in the top-right corner to disable the fullscreen modeHi,
I moved this Air application to the blog of my enterprise : http://blog.piaction.com/2009/08/catalyst-prototype-fullscreen/lang/en/
And now the prototype can fit to the browser's size AND be displayed in fullscreen.
It's rough but this is cool for client presentation -
XCode 5.1 updated and now I can't debug AIR apps on iOS Simulator anymore
Today XCode updated itself to version 5.1, with new iOS 7.1 platform support. It updated itself without asking permission, and now I can't run my AIR apps on the iOS simulator anymore. All my apps fail with the following error:
'Launching [myApplication]' has encountered a problem.
Error occurred while installing the application:
dyld: Library not loaded: @rpath/iPhoneSimulatorRemoteClient.framework/Versions/A/iPhoneSimulatorRemoteClient
Referenced from: /Applications/AIR_SDKS/AIRSDK_4.0.0.1628/lib/aot/bin/isb/isb
Reason: image not found
/var/folders/g1/014r026919j9fkv085ypt31r0000gn/T/cmd7720052456329253213.tmp: line 1: 2126 Trace/BPT trap: 5 "/Applications/AIR_SDKS/AIRSDK_4.0.0.1628/lib/aot/bin/isb/isb" "-install" "-apppath" "/var/folders/g1/014r026919j9fkv085ypt31r0000gn/T/eb03981d-5689-4bb5-821c-78ca84086393/Pa yload/[myApplication].app" "-sdkpath" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/ SDKs/iPhoneSimulator7.1.sdk"
I use AIR SDK 4.0.1628 (the latest version according to the SDK download page today), and it doesn't make a difference if I choose another simulator version (7.0 and 6.1 fail the same way).
I'm developing in Flash Builder 4.7, on OS X 10.9.2
Any ideas of how to fix this? Will using the AIR 13 beta help?
Thanks, FrankThanks for the steer Jason that worked,
So that would be Apache Flex 4.12 using Flex installer 2.7 will bring the same benefits of AIR SDK for Flex 13...... I basically have to use an installer from a third party to make the commercial product I pay for work to solve the precise problem its sold as solving.
It's like buying a *******' drill you have to put together yourself.
I'm gonna get this build finished, then sneak into Flash Builders room while it's having a sleep after a big dinner and smother it with a pillow. It's the kindest thing to do. Ha!
@DavidDragon,
Follow these steps:
http://flex.apache.org/doc-getstarted.html
However just make sure you use the latest version [4.12.0] -
Flex 3.3 can't launch AIR apps on Mac
When using the 3.3 SDK if I try to debug an application I get
this error:
Process terminated without establishing connection to
debugger.
If the program is already running, close it before attempting
to debug.
I have tried all manner of restarting down to my full system.
Flex/Flash Player works fine, its just launching AIR. If I try to
run the AIR app (rather than debug) nothing happens at all --
nothing launches, no errors, nothing.
I'm using a MacBook Pro, Intel Core2Duo, OSX 10.5. The
problem has been replicated on a coworkers' Mac as well. I haven't
tested on Windows.https://bugs.adobe.com/jira/browse/SDK-19707
-
I am running an Air App I did for the desktop, from the actual installed executable already deployed in the machine (Not from Flash Pro / Flex dev. environment). For some reason the app will not read a text file stored in the same application folder unless I run my app as administrator from the OS.
When I run the app as admin, or within the development environment it works fine. Maybe this is related to some security issue? I read the adobe air documentation, and this should work...
I am using openAsync/readUTFBytes on user as shown here:
var continueGamesConnection:FileStream();
var continueFile:File = new File(File.applicationDirectory.resolvePath("continueGames.txt").nativePath.toString());
continueGamesConnection.addEventListener(Event.COMPLETE, openSavedGames);
continueGamesConnection.openAsync(continueFile, FileMode.UPDATE);
function openSavedGames(event:Event):void
continueGamesConnection.removeEventListener(Event.COMPLETE, openSavedGames);
var content:URLVariables = new URLVariables();
var loadedContent:String = new String();
loadedContent = continueGamesConnection.readUTFBytes(continueGamesConnection.bytesAvailable);
content.decode(loadedContent);
variableX = content. variableX
//etc, etc.
continueGamesConnection.close();
By the way, I have also, tried using FileMode.READ, and others, and it still gives me the same problem. Only works if ran on admin mode or from the dev. environment.
It's very frustrating, I tried reading other posts without any luck... What solutions do people use for this kind of problem?
I have seen that you can set the app to run as admin somehow, and I guess that could work. However, this should work just fine, since it doesn't seem to violate any of the security APIs of Air. Seems like an overkill. But even so, how do I do that?
You help is greatly appreciated!Thanks kglad.com. I will try this and see if it works. Can you check my code a bit to see if it's right?
var continueFile:File = new File(File.applicationStorageDirectory.resolvePath("savedgames/continueGames.txt").nativePath.toString());
Does this look right to work across all desktop OS? -
AIR app crashes when switching tabs
Hi there:
I posted in another forum about this, but it seems the issues
aren't really related, so a recap:
quote:
Originally posted by:
patrickcheatham
I am trying to run an AIR app which _crashes_ as soon as it
needs to access a file or files on the hard drive (via an HTML
component). Sometimes it just crashes, sometimes I get an error
that the app can't find Adobe AIR. I have followed most or all of
the suggestions in
this
thread.
Attached code is a crash report.
Thanks!
The app can be found
here
The crash report can be found
here
The crash report has WebKit all over it; interstingly, when a
user reported installing the Safari 4 Beta recently, all crashing
stopped (that doesn't really make sense to me, but OK).
quote:
Originally posted by:
patrickcheatham
I have further input on this:
1) The crash occurs when the user switches tabs;
specifically, when the user switches from a tab which does _not_
contain an HTML component, to one which _does_ contain an HTML
component. Said HTML component looks for local content.
2) The crash occurs when the app tries to phone home to
Adobe; this phoning home appears to occur during item 1 above
_and/or_ when the app is launched.
Any help from above or insight appreciated.
Thanks,
PatrickHi Mirela:
It may be that the issue is a non-issue with AIR 1.5.1
(versus v1.5), so we'll see. Frustrating, nonetheless, especially
since it is a sporadic issue.
You can follow other users' experiences in the forum at
panosalado.com.
Thanks for taking the time to download it and try it out --
and for the feedback. Good to hear a positive! :)
Cheers,
Patrick -
Flash builder and air app Help
Hi everyone
I am new to flash builder I have many adobe products ie master collection, and have an Idea for a small application. But need it to do a few things. I have only looked into fash builder a little but want to know a few things before getting started by getting the trial and then purchasing the real deal.
With flash builder and air can I make a app that will detect the top most window on the clients computer and return the name of the program ie photoshop etc and then give me the name of the active window, tab etc.
How much scope is there for interaction with other adobe products in the master collection.
I have written a few little script before in java. vb, applescript and actionscipt but I want to know if flash builder and air combo has the functionality I need before I bother getting into it to deep.
Thankyou for your time in advance.
Regards DanielYou can run the AIR app separately, it should still be on your system (Applications > Adobe > Adobe Help or the root of your Start menu on windows).
If for some reason the app isn't there, reinstall it from http://www.adobe.com/support/chc/. There's a preference under Edit > Preferences > General Settings for "Accessibility Mode". If you select "Open Help in browser", your Adobe applications will open a browser instead of launching CHC.
Jason San Jose
Software Engineer, Flash Builder
Maybe you are looking for
-
hello, i have recently purchased an ipod touch.i am having trouble with apps. i have bought apps off itunes but it wont appear on my ipod. i have synced the ipod with the computer multiple times but still no luck. i think it has something to do with
-
Dear Gurus, I am having doubt on the pricing procedure for factory sales. I have maintained condition types in Jinfac using v/08 and if i am maintaing condition records in fv11 i am not getting condition types which i have maintained in prici
-
Message FH017 Open item management only allowed for balance sheet accounts
Hi, While creating a new GL account with P&L type it's giving the above message. If I select the BS type indicator, it's saving without any error. I observed, account group selection is creating this problem. Since creation of other accounts in other
-
Installing Learning Solution in HR using Standard Business Content
Hi, I have to set up the extraction for the Learning Solutions cubes in HR into BW using the Standard Business Content. Could someone please gide me through the process for doing it ( Step-by-Step if possible), both from the SAP R/3 side and the BW
-
Hi is there a way to set the same width for several select lists located vertically in one column ? Thanks