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
Similar Messages
-
Launching an AIR app from another (when offline)?
I have a pair of AIR applications that are meant to work
together as part of an application suite. One feature is that a
user should be able to click a button in APP_1 and launch APP_2 (if
installed). To do this I created a "LaunchButton.swf" that loads
"air.swf". This works GREAT when the user is online and "air.swf"
is able to be loaded from "
http://airdownload.adobe.com/air/browserapi/air.swf".
I tried to copy "air.swf" locally and use that instance but I am
guessing that it doesn't work due to security restrictions.
If there are any AIR engineers reading this (Oliver?) please
let me know if there is a solution to "Launching an AIR app from
another (when offline)?"
Thanks!I think theoretically it shouldn't work, and doesn't by the
response you give. Remember a functional work around isn't always a
fix. What you've essentially done is loaded the air.swf into a
sandbox bridge, bridging it between a web sandbox and an
application sandbox, therefore you're able to call its methods
without security errors. However, if the air.swf loads in another
swf, maybe a helper swf, you won't be able to access any methods in
that swf, neither will the air.swf. To my understanding, it's not
grandfathered into the sandbox bridge, but retains its web sandbox.
Before going crazy about the bad news I may have just given,
wait until Ted returns to give you a response. I could be way off
par here :) Good luck! -
Now whenever I launch my air app I get this error:
Process terminated without establishing connection to debugger.
Command:
"C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\bin\adl.exe" D:\fromLapTop\lapDocs\Flex\Workspaces\MothersRings\MothersRingsAir\bin-debug\MothersRings Air-app.xml D:\fromLapTop\lapDocs\Flex\Workspaces\MothersRings\MothersRingsAir\bin-debug
Output from command:
error while loading initial content
I verified everything was in the locations specified. I also search on google and found a post somewhere that said I should change the xml namespace I tried: http://ns.adobe.com/air/application/1.1 and http://ns.adobe.com/air/application/1.5 but then it says it can't resolved <mx:WindowedApplication> as a component.
Here is the source code:
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
modalTransparencyColor="#663333"
backgroundGradientAlphas="[1.0, 1.0]"
backgroundGradientColors="[#663333, #663333]"
verticalAlign="middle" horizontalAlign="center" width="100%" height="100%"
applicationComplete="onApplicationComplete()">
<mx:Script>
<![CDATA[
private static const neededForCompilation:AirGeneralImplementation = null;
private function onApplicationComplete():void
var can:MothersRings = new MothersRings();
this.addChild(can);
//can.labelMessage = "Loaded in an AIR Application ";
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
]]>
</mx:Script>
<mx:Style source="style/style.css"/>
<mx:Style>
.header{
fontSize:"18";
fontWeight:"bold";
TileList{
backgroundColor:#996666;
borderColor:#330000;
rollOverColor:#cc9999;
borderThickness:1;
</mx:Style>
</mx:WindowedApplication>
Can anyone help me out?
Thanks!!I agree with the first response...I usually see this error when I have already launched a test of the project (clicked the play button) and forgot to close it. The issue you saw on the Internet will usually cause it not to run or do anything except just sit there. I have to change that setting every time I go from an XP to Vista machine...even though the both have AIR 1.5 on them. If I don't change it, it doesn't run which bothers me from a distribution concern...I hope it will run regardless of the OS.
HTH
Dave -
CustomeUpdateUI for native AIR app installer
Hi,
We have a native installer for a windows and Mac AIR app.
For updates, we use the NativeApplicationUpdater code from:
http://code.google.com/p/nativeapplicationupdater/
After an update has been downloaded and launched, AIR shows a dialong prompting the user to "Replace" or "Cancel"
the update.
I would like to get rid of the dialog as this seems to include a redundant question for the user who chose to update from the first place.
I believe setting the <customUpdateUI> tag at the application decriptor file would hide the dialog, but that causes the update to just launch the existing app. How can I come up with custom logic that will cause the update to actually replace the existing app?
Thanks,
EilonIt 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 -
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. -
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). -
Can't install native air app on Windows XP
Windows XP SP3
Install log
[2012-02-20:13:18:49] Bootstrapper begin with version 3.0.0.4080 on Win x86
[2012-02-20:13:18:49] Installed runtime (3.1.0.4880) located at c:\Program Files\Common Files\Adobe AIR
[2012-02-20:13:18:49] Launching subprocess with commandline "Adobe AIR Application Installer.exe" "C:\Temp\AIR1.tmp\DirectCommander"
[2012-02-20:13:18:52] Application Installer begin with version 3.1.0.4880 on Windows XP x86
[2012-02-20:13:18:52] Commandline is: C:\Temp\AIR1.tmp\DirectCommander
[2012-02-20:13:18:52] Installed runtime (3.1.0.4880) located at c:\Program Files\Common Files\Adobe AIR
[2012-02-20:13:18:54] Validating app in folder C:\Temp\AIR1.tmp\DirectCommander
[2012-02-20:13:18:55] Application signature verified
[2012-02-20:13:18:55] Unpackaging/validation complete
[2012-02-20:13:18:55] No app located for appID 'ru.yandex.direct.commander' and pubID 'EB09D3D12E06B1A2575408F5347232008B284B95.1'
[2012-02-20:13:18:55] Got an unexpected fatal error while unpackaging: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="Unhandled exception TypeError: Error #1009" errorID=1009]
[2012-02-20:13:19:01] Application Installer end with exit code 7
[2012-02-20:13:19:01] Subprocess Application Installer failed (7)
[2012-02-20:13:19:01] Bootstrapper end with exit code 7
This application http://support.microsoft.com/mats/Program_Install_and_Uninstall/en-us didn't help.
What can it be?Link http://direct.yandex.ru/commander/DirectCommander.exe
> You might also consider creating a temporary user account and see if you can install there.
Why it should be help? -
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. -
Need to 'launch' AIR app from SD card on Samsung Galaxy TABLET...
April/28/11 at 3pm ET
Hi to the group...
Not 100% sure if this is proper forum to ask this, if anyone knows a better one please point me to it via ([email protected])
Ok. Trying to see if my working .AIR app will run on my pals Samsung Tablet (before I buy one for myself)...
Dropped the 'AIR' file onto the SD card (I can see it (the AIR file, size correct) via the fileBrowser app but clicking it does nothing.
Of note AIR is installed in background of the device and it is running.
Cant see/find an 'Adobe AIR launcher?' icon' anywhere (only see Adobe PDF browser).
In all my web searching I see 10000 developer related tutorials re: creating an APK file / converting to APK file using Flash Professional ect. Not what I am looking for...
I think I am missing something very basic here is there a launcher for AIR apps on Android?
TIA //GregHHello
Thank you for your post.
You cannot throw directly from your external device, however you can once that file is transferred to internal memory.
please review this guide for instructions on how.
How to throw (send) music, video or picture files to a DNLA compatible device.
https://us.en.kb.sony.com/app/answers/detail/a_id/34563/c/65,66/kw/34563 -
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...
-
Please help with setting up native mail app using Gmail with alternate email address
I have an alternative email address setup such as [email protected] configured to use with my online Gmail account. In the online account, I use the alternate email services smtp server so emails are sent correctly from that alias.
Is there a way to setup the native mail app to use Gmail for mail, contacts, and calendar and use an alternate email address as the sender? Right now I am syncing contacts and the calendar through the native mail app and using the Gmail mail app for my email. It allows you to select from all of the emails setup on the Gmail account.
But for simplicity sake, I would like to consolidate to the native email app for all of my accounts - I also have an Exchange based work account.
Thank you for the help.iCloud Help
Creating an iCloud account- Frequently Asked Questions
Apple IDs and iCloud
iCloud: What version of Windows software am I using for iCloud? -
URI Scheme Not Working - Windows
The URI scheme is not working on Internet Explorer or any browser in Windows 8. I am using the URI scheme from the microsoft technet site. Oddly enough, it works flawlessly on apple computers - it launches the microsoft remote desktop app when i click on
the link that contains the URI scheme. On Windows 8, it says that no apps are installed to read that file type (rdp). I really need the use of this. Why is it working on macs but not on pc's running windows?
Here is the URI scheme i am using - obviously the server name and domain have been replaced
rdp://full%20address:s:servername&domain:s:domainhereHi,
Yes, this URI Scheme only works for Android, Mac and IOS devices.
Remote Desktop Client URI Scheme Support
http://technet.microsoft.com/en-us/library/dn690096.aspx
For Windows Client, you need to register an application to a URI Scheme, such as associate mstsc.exe with rdp://
Registering an Application to a URI Scheme
http://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx
Hope this helps.
Jeremy Wu
TechNet Community Support -
Is the username field required in the URI Scheme?
The URL scheme does seem to work now just like RDP files but it does not work if I leave the username field blank. I can enter the domain in username field but cannot get a "\" included. I would ideally like it to be blank. Also, SSO
does not work.Hi,
Thank you for posting in Windows Server Forum.
Enabling a Uniform Resource Identifier (URI) scheme gives IT professionals and developers a way to integrate features of the Remote Desktop clients across platforms and enriches the user experience by allowing:
1. Third-party applications to launch Microsoft Remote Desktop and start remote sessions with predefined settings (provided as part of the URI string.)
2. End users to start remote connections using pre-configured URLs.
More information.
Remote Desktop Client URI Scheme Support
http://technet.microsoft.com/en-us/library/dn690096.aspx
Hope it helps!
Thanks.
Dharmesh Solanki -
Windows Explorer Right Click - Open file in Air App
I have an AIR App that I made to run on my desktop. It is used for editing specifc XML files. I want to know if its possible to setup so that I can right click on an XML file while browsing Windows Explorer and choose an option to "Open in (my AIR App)" ... that would lauch my AIR app and also open the xml.
Right now, I have to launch my AIR app, click to open a file, and then browse for the file and select it.ok so after all of this time, i stumbled upon something that should solve my problem. i created a new AIR file in flash and put a text field on the stage with the name "my_txt" then I just added this bit of script (below) .... then once I installed the air app, i opened a file into the app and the path to the file was displayed in the text box thats on the stage. now i just have to use this path to actually open the file.
import flash.events.InvokeEvent;
NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, invoked);
function invoked(evt:InvokeEvent):void{
my_txt.text = String(evt.arguments[0]); -
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
Maybe you are looking for
-
My Encore is crashing when I try and add a menu button?
I can't figure out what is causing this, there doesn't appear to be an update and Adobe support only services Cloud members now. I was also getting a "photoshop file error -1" message. Any ideas?
-
The firefox icon disappears from my computer and I can't reinstall it.
When i shut down my computer, often the firefox icon will be gone when I restart. I was just reinstalling it, but now I no longer can. Please help in terms I can understand as I am very inexperienced in computers. I got a new Macintosh in January and
-
I want to identify my PXI system and chassis. Upon right clicking "PXI System(Unidentified)", which gives a list under "Identify As", what has to be selected?. Should I select the External PC because I connect the chassis to a PC. I have he NI PXIe
-
I am unable to access anything in firefox , just get the spinning wheel and have to force quit.
-
Saving slow and fast data on the time stamp..
Hi ! I'm retrieving data fast data from DAQ device (dt=0,01s) and from GPS resiever (dt=1s) . I need to save all data on common time axis. Is there way to put zero in slow data colum if regular data are missing ? (sorry for stupid question I'm LV be