New AIR 2.5 Updater Framework Guidance Document
For those working on updating their AIR application to the 2.5 namespace, a new document was released yesterday that gives detailed instructions on what steps you must take to make sure the application updater framework changes go smoothly.
Update AIR 2 or earlier to AIR 2.5 Application Updater framework
Please let us know how it goes and if this document was helpful.
Thanks,
Chris
If you are developing a AIR 2.5 application, you will have to use the InMarket SDK for Flex 4.1 targeting AIR 2.5. Hope this helps.
Thanks
Shikha
Similar Messages
-
AIR Update framework with Flash Builder
Hi,
I am not sure if this is the right place but since this problem happens with the new Flash Builder 4 and AIR, I am putting it here :
When I run the Air update framework with the new flash builder , i get this exception when I call appUpdater.initialize() in the same given in http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&product Id=4&postId=9543
The error is
TypeError: Error #1007: Instantiation attempted on a non-constructor.
at mx.controls::ProgressBar/createChildren()
at mx.core::UIComponent/initialize()[E:\dev\beta1\frameworks\projects\framework\sr c\mx\core\UIComponent.as:6510]
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\UIComponent.as:6402]
at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\Container.as:3879]
at mx.core::Container/addChildAt()[E:\dev\beta1\frameworks\projects\framework\src\ mx\core\Container.as:2541]
at mx.core::Container/addChild()[E:\dev\beta1\frameworks\projects\framework\src\mx \core\Container.as:2459]
at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_ApplicationUpdaterVBox10_c ()
at mx.core::DeferredInstanceFromFunction/getInstance()[E:\dev\beta1\frameworks\pro jects\framework\src\mx\core\DeferredInstanceFromFunction.as:105]
at mx.states::AddChild/createInstance()
at mx.states::AddChild/set targetFactory()
at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_AddChild8_i()
at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_State7_c()
at ApplicationUpdaterDialogs()
at _ApplicationUpdaterDialogs_mx_managers_SystemManager/create()
at mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\beta1\frameworks\p rojects\framework\src\mx\managers\SystemManager.as:3581]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[E:\dev\beta1\frameworks\projects\framework\src\mx\managers\SystemManager.as:3 400]
at mx.managers::SystemManager/docFrameListener()[E:\dev\beta1\frameworks\projects\ framework\src\mx\managers\SystemManager.as:3258]
The code is the exact same give in the example i mentioned above.
This works fine in my Flex Builder 3.
Thanks
Hironmay Basuthe issue is already reported here:
http://bugs.adobe.com/jira/browse/SDK-22886?page=com.atlassian.jira.plugin.system.issuetab panels:all-tabpanel
As a workaround, you can try using:
http://www.websector.de/blog/2009/09/09/custom-applicationupdaterui-for-using-air-updater- framework-in-flex-4/ -
Flash Builder and Adobe AIR update framework
Hi,
I posted this in AIR forum , but thought it happens with new flash builder and flex 4 beta , i should do here also
When I run the Air update framework with the new flash builder , i get this exception when I call appUpdater.initialize() in the same given in http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&product Id=4&postId=9543
The error is
TypeError: Error #1007: Instantiation attempted on a non-constructor.
at mx.controls::ProgressBar/createChildren()
at mx.core::UIComponent/initialize()[E:\dev\beta1\frameworks\projects\framework\sr c\mx\core\UIComponent.as:6510]
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\UIComponent.as:6402]
at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\Container.as:3879]
at mx.core::Container/addChildAt()[E:\dev\beta1\frameworks\projects\framework\src\ mx\core\Container.as:2541]
at mx.core::Container/addChild()[E:\dev\beta1\frameworks\projects\framework\src\mx \core\Container.as:2459]
at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_ApplicationUpdaterVBox10_c ()
at mx.core::DeferredInstanceFromFunction/getInstance()[E:\dev\beta1\frameworks\pro jects\framework\src\mx\core\DeferredInstanceFromFunction.as:105]
at mx.states::AddChild/createInstance()
at mx.states::AddChild/set targetFactory()
at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_AddChild8_i()
at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_State7_c()
at ApplicationUpdaterDialogs()
at _ApplicationUpdaterDialogs_mx_managers_SystemManager/create()
at mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\beta1\frameworks\p rojects\framework\src\mx\managers\SystemManager.as:3581]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[E:\dev\beta1\frameworks\projects\framework\src\mx\managers\SystemManager.as:3 400]
at mx.managers::SystemManager/docFrameListener()[E:\dev\beta1\frameworks\projects\ framework\src\mx\managers\SystemManager.as:3258]
The code is the exact same given in the updater example i mentioned in the link above. Only difference is i am using spark framework. The appUpater.initialize() never seem to work and keeps throwing an exception. Any alternatives so suggestions ?
This works fine in my Flex Builder 3.
Thanks
Hironmay Basuthe issue is already reported here:
http://bugs.adobe.com/jira/browse/SDK-22886?page=com.atlassian.jira.plugin.system.issuetab panels:all-tabpanel
As a workaround, you can try using:
http://www.websector.de/blog/2009/09/09/custom-applicationupdaterui-for-using-air-updater- framework-in-flex-4/ -
Air Update Framework Issue... Help please!
The following code is from the Air Employee Directory example
to which I have added an Update Object, the app installs and
updates with no problem, but as soon as the update is done and it's
time for the app to start, the app just doesn't come up. It was
working fine before I added the update object... Any idea on what I
could be doing wrong?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" xmlns:ui="com.adobe.empdir.ui.*"
applicationComplete="onApplicationComplete()" height="100%"
width="100%" frameRate="45"
horizontalScrollPolicy="off" verticalScrollPolicy="off"
visible="false"
showEffect="Fade" xmlns:local="*"
creationComplete="checkUpdate()">
<mx:Script>
<![CDATA[
import mx.logging.Log;
import com.adobe.empdir.commands.ui.CloseApplicationCommand;
import mx.binding.utils.BindingUtils;
import mx.events.StateChangeEvent;
import mx.events.ResizeEvent;
private function onApplicationComplete() : void
callLater( ui.init );
// We listen to CLOSING fromboth the stage and the UI. If
the user closes the app through the taskbar,
// Event.CLOSING is emitted from the stage. Otherwise, it
could be emitted from TitleConrols.mxml.
ui.addEventListener( Event.CLOSING, onWindowClosing );
stage.nativeWindow.addEventListener( Event.CLOSING,
onWindowClosing );
stage.nativeWindow.addEventListener( Event.CLOSE,
onWindowClose );
private function onWindowClose( evt:Event ) : void
NativeApplication.nativeApplication.exit();
private function onWindowClosing( evt:Event ) : void
evt.preventDefault();
var cmd : CloseApplicationCommand = new
CloseApplicationCommand();
cmd.execute();
]]>
</mx:Script>
<mx:Script>
<![CDATA[
import air.update.events.UpdateEvent;
import mx.controls.Alert;
import flash.events.ErrorEvent;
import air.update.ApplicationUpdaterUI;
* @var the object that that handles the update related
actions
private var appUpdater:ApplicationUpdaterUI = new
ApplicationUpdaterUI();
* This function is triggered when the application finished
to load;
* Here we initialize <code>appUpdater</code> and
set some properties
private function checkUpdate():void {
setApplicationVersion();
// we set the URL for the update.xml file
appUpdater.updateURL = "
http://localhost/updater/update.xml";
//we set the event handlers for INITIALIZED nad ERROR
appUpdater.addEventListener(UpdateEvent.INITIALIZED,
onUpdate);
appUpdater.addEventListener(ErrorEvent.ERROR, onError);
//we can hide the dialog asking for permission for checking
for a new update;
//if you want to see it just leave the default value (or set
true).
appUpdater.isCheckForUpdateVisible = false;
//if isFileUpdateVisible is set to true, File Update, File
No Update,
//and File Error dialog boxes will be displayed
appUpdater.isFileUpdateVisible = false;
//if isInstallUpdateVisible is set to true, the dialog box
for installing the update is visible
appUpdater.isInstallUpdateVisible = false;
//we initialize the updater
appUpdater.initialize();
* Handler function triggered by the
ApplicationUpdater.initialize;
* The updater was initialized and it is ready to take
commands
* (such as <code>checkNow()</code>
* @param UpdateEvent
private function onUpdate(event:UpdateEvent):void {
//start the process of checking for a new update and to
install
appUpdater.checkNow();
* Handler function for error events triggered by the
ApplicationUpdater.initialize
* @param ErrorEvent
private function onError(event:ErrorEvent):void {
Alert.show(event.toString());
* A simple code just to read the current version of the
application
* and display it in a label.
private function setApplicationVersion():void {
var appXML:XML =
NativeApplication.nativeApplication.applicationDescriptor;
var ns:Namespace = appXML.namespace();
]]>
</mx:Script>
<mx:TraceTarget level="0" includeDate="false"
includeTime="false"
includeCategory="true" includeLevel="true">
<mx:filters>
<mx:Array>
<mx:String>*</mx:String>
</mx:Array>
</mx:filters>
</mx:TraceTarget>
<ui:ApplicationUI id="ui" width="100%" height="100%"
/>
</mx:Application>This was an issue with the Update Framework in AIR SDK 1.5.3, which has been fixed. If you still want to use the ApplicationUpdaterUI, you can replace the swc in Flex SDK 3.6 with an applicationupdater_ui.swc from a newer version of AIR.
Have a look at solution 3 in this post for some details on where to find the applicationupdater_ui.swc and how to replace it.
http://forums.adobe.com/message/3060118#3060118
Hope this helps!
Horia -
Update framework always creates new desktop icon
I'm using the AIR update framework (ApplicationUpdaterUI),
and whenever the user updates the application, a new desktop icon
gets created (overwriting any existing desktop icon there). Is
there a way to suppress this behaviour, or can someone suggest a
workaround?
Here's the situation:
Our AIR app uses a separate bootstrapping application to
launch some services before the AIR application launches, so it's
important that the user does not run the AIR executable themselves.
Our installer creates a desktop icon that points to the
bootstrapping executable. When the user updates the application, it
replaces our desktop icon with the AIR shortcut.
Thanks!Log your feature request HERE.
-
I keep getting the message You need a newer version of Pages to open this document. but I don't have an update available in app world. I did the update but it doesn't seem to be registering on my macbook pro. Now I can't open any of my documents as I keep getting this message. Now what???
You have 2 versions of Pages on your Mac.
Pages 5 is in your Applications folder.
Pages '09/'08 is in your Applications/iWork folder.
You are alternately opening the wrong versions.
Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
Pages 5 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
Anything that is saved to iCloud is also converted to Pages 5 files.
All Pages files no matter what version and incompatibility have the same extension .pages.
Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
Note: Apple has removed over 100 features from Pages 5 and added many bugs:
http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
Archive/trash Pages 5, after exporting all Pages 5 files to Pages '09 or Word .docx, and rate/review it in the App Store, then get back to work.
Peter -
when I click on a saved document or spreadsheet, I get this message 'You need a newer version of Numbers to open this document'. When I go Software update, there is no update for pages or numbers. can't purchase or update?
Trying re-purchasing. won't let me. says to check for updates?
any suggestionsIt sounds to me as though you are attempting to open a Pages 09 document with the Pages 08 application. If you do have Pages 09 on your computer, it may be that for some reason an existing Pages 08 application is invoked accidentally.
Jerry -
Hi all
I am using the framework with an application Flex built on AIR, no problem, everything is ok.
(The application is built using the db Sqlite).
Someone knows if it is possible to add one or more script, updating a precise version, to update the db (to add index, fields, etc...) ?
thanks in advance...Thank you.
So, if I can understand, the framework itself does not include possibility of update of the db, and is necessary to execute scripts on the db after the update, like this:
public function check4Update():void {
//setApplicationVersion(); // Find the current version so we can show it below
appUpdater.updateURL = AirFlex.APPLICATION.configuration.syncEngineConfiguration.updateURI;
appUpdater.isCheckForUpdateVisible = false; // We won't ask permission to check for an update
appUpdater.addEventListener(UpdateEvent.INITIALIZED, onUpdate); // Once initialized, run onUpdate
appUpdater.addEventListener(ErrorEvent.ERROR, onError); // If something goes wrong, run onError
appUpdater.initialize(); // Initialize the update framework
private function onError(event:ErrorEvent):void {
Alert.show(event.toString());
private function onUpdate(event:UpdateEvent):void {
appUpdater.checkNow(); // Go check for an update now
// now, if the update is ok :
...... execution of the scripts to update the Db.....................
is right ????? -
for Update framework of AIR Application, I want preserve databases when i update lates download ,Right now when i ta
ke latest from server it will remove my database value and i i want ot preserve my database value.
Please any one can guide me in this?Ya it is in Application directory...
in windows :: D:\FlexWorkSpaceSVN\YSIPrototype\bin-debug\data\YSIDB.db
Thanks
Sunil -
Hello, I have updated to the newest version of Pages and yet when I open a document to use it says, "You need a newer version of Pages to open this document." When I got to install it again it says I have already done that. Anybody have any tricks? Thanks!
You have 2 versions of Pages on your Mac.
Pages 5 is in your Applications folder.
Pages '09/'08 is in your Applications/iWork folder.
You are alternately opening the wrong versions.
Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
Pages 5/5.01 can not open Pages 5.1 files and you will get the warning that you need a newer version.
Pages 5.1 sometimes can not open its own files and you will get the warning that you need a newer version.
Pages 5 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
Anything that is saved to iCloud is also converted to Pages 5 files.
All Pages files no matter what version and incompatibility have the same extension .pages.
Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
Apple has not only managed to confuse all its users, but also itself.
Note: Apple has removed over 95 features from Pages 5 and added many bugs:
http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
Archive/trash Pages 5, after exporting all Pages 5 files to Pages '09 or Word .docx, and rate/review it in the App Store, then get back to work.
Peter -
Adobe Air runtime auto-updates itself without any notification or request on my Mac OSX 10.6.7 machine. I do not like this behavior. Is there any way to change it?
Please see our Disable automatic updates of the runtime document. However, please be aware that our updates include both new functionality and bug and security fixes. I'd definitely recommend keeping an eye out for future releases and manually installing if you disable the updates.
Thanks,
Chris -
Use the system lang of AIR applications auto update.
Hello,
I recently used the auto update framework for my AIR application, this works fine but i have a small problem.
I made some reasearches and i found AIR uses the system lang by default. When i install my package for the first time, the lang is my sytem lang but when i find a new update after running auto update of my app, the AIR updater window doesn't use my sytem lang, which is french, but uses english lang. I'd like to put this window in french.
Thanks.Try loading and using the add-on from this link: https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/
Many add-ons do in fact work if you force them to run. The procedure to roll-back is given in this article: [[installing previous versions of firefox]]
Unfortunately the official Firefox policy is that you downgrade to 3.6 which is supported for a while longer, and not the now unsupported Firefox 4. If after installing and running the ''add-on compatibility reporter'' you still have problems there are ways around the official policy.
I think it is absurd that Firefox 4 may be used by tens of millions of users one day and a few days later those that upgrade to Firefox 5 should be not only told not to use a now unsupported browser, if they need to revert due to problems, but are actually obstructed in attempts to do so. See also [/questions/840397#answer-205154] -
Application Update Framework in Mobile Based App
Alright, I have a tabbed application that I target mobile tablets with (iPad, and Android). However, I also export it as a desktop app. Now, the problem I am running into, is integrating the application update framework to execute when the app loads on the desktop only version (obviously the app store is handling the updates on the tablets).
On creation complete, I am calling the updateCheck:
//Update Framework Related
import air.update.ApplicationUpdater;
import air.update.ApplicationUpdaterUI;
var appUpdater:ApplicationUpdaterUI = new ApplicationUpdaterUI();
protected function updateCheck(event:FlexEvent):void
appUpdater.configurationFile = new File("app:/updateConfig.xml");
appUpdater.initialize();
My updateConfig.xml looks like:
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns="http://ns.adobe.com/air/framework/update/configuration/1.0">
<url>http://pro-linx.com/release/mscoast/updateDescriptor.xml</url>
<delay>3</delay>
</configuration>
My updateDescriptor.xml consists of:
<?xml version="1.0" encoding="utf-8"?>
<update xmlns="http://ns.adobe.com/air/framework/update/description/1.0">
<version>2.4.15</version>
<url>http://pro-linx.com/release/mscoast/Pro-Linx-MS-Current.air</url>
<description><![CDATA[
v2.4.15
* New Feature: Auto Update Framework - Always keeps your app updated with the latest releases!
* New Feature: Live Searching - Filter projects on the Projects page simply by typing!
* Various minor bux fixes.
* Various graphical inconsistancy fixes.
]]></description>
</update>
However, when I execute the app, I get this error:
Error #2044: Unhandled error:. text=Unhandled exception TypeError: Error #1009: Cannot access a property or method of a null object reference.
And the app debugger highlights the following in updateConfig:
<url>http://pro-linx.com/release/mscoast/updateDescriptor.xml</url>
Any ideas guys?A little digging and I found this issue: https://bugbase.adobe.com/index.cfm?event=bug&id=3650590
Apparently not just Mavericks. This was an issue with the current released of AIR 3.9. I confirmed that downloading the beta of 3.9 released on 10/29/2013 seems to have fixed the issue. -
I have Keynote '09 and have used it many times. Today I started another Keynote document, stopped for a while, came back to continue, and received, "You need a newer version of Keynote to open this document." ?? Stumped.
IOS Pages 2.0 and 2.1 implement an entirely incompatible document format with Pages ’09 v4.3. It cannot open them, and you are then prompted to update to Pages v5+ which is compatible with your IOS Pages.
Unfortunately, updating to Pages v5+ is a bad thing, as it is a brand new application that has omitted over 90+ features from Pages ’09 v4.3. When you update to Pages v5+, it will move your old still functional version of the earlier Pages into /Applications/iWork. Aside from all the missing functionality, Pages v5+ will likely damage older documents that depend on specific Pages ’09 v4.3 features (including AppleScript and custom Templates).
Oh, by the way, the older and new Pages documents have the same filename extension (.pages) making document organization difficult without applying different tag colors to old and new documents.
We are recommending that users remain on their earlier Pages version. You may have to export documents from IOS Pages as Word .docx to avoid the OS X Pages update notice. -
When I try to open a recent document I get the following message "You need a newer version of Pages to open this document." I have downloaded version Pages version 5.2.2 and the app store confirms this (and won't let me download it again), but my Pages About reports that I am using 4.3
Here is the solution that I received from the chat line.
When you update applications like Pages it usually keeps both versions on the computer. So what most likely happened is it didn’t put the new version on your dock. So to fix this, open a finder window. And go into applications which should be listed on the left. Scroll down and you will see Pages listed in here. And the icon should look different. You can drag that icon down onto your dock.Open that and you then can access your documents
Maybe you are looking for
-
I got a new iphone 4s which was a replacement for my 4s that got wet abuot 2 months ago. I had the applecare people walk me thru setting up the new phone. I just noticed that almost all of my music is not showing up on my phone. How can I get my m
-
IMac/Lepoard start up - grey screen of death - help!
I turned off my computer last night, working fine. This morning I turn on my computer and it said there was new software (iTunes I think though perhaps other stuff). I downloaded it and then told it to restart. To be honest, I didn't pay too much a
-
Uploading of Journal Entries to GL
Hi guys, I am a new user of SAP, Right now, we are re-encoding our journal entries coming from different excel files to GL. Is there an easy way that we can do away with manual encoding to the SAP? I'm seeking your help with regards to this mat
-
Why does my Photos application show all of my pictures as blurry?
The built in Photos app just recently started to display every one of my photos as blurry. Why does it do this? I have tried closing out all other applications, restarted the Ipad itself, and then opened the Photos app again. However, the pictures st
-
Consume XI web service in web dynpro application
HI All, I have scenario access web service in web dynpro java, which is created by XI ..Now I have WSDL file. Using that WSDL file I have imported web service model(Adaptive web service method) in my web dynpro java. By following the PDF document