Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Regular Contributor
Danel
Posts: 54
Registered: ‎03-16-2011
My Device: PlayBook
My Carrier: Developer
Accepted Solution

Application not installed correctly

So, finally a member, and with first problem.

 

Ive noticed that few people have same problem as me and none of the posts ive read have been for help.

 

So, to start of im using Flash Pro CS5

(yes i could use Burrito but i choose FP)

 

Now, i followed Renaun's tutorial for first time and it all worked fine about 3 days ago.

2 days ago it started to go wrong, now ive re-installed as much i can but no help.

 

Problem.

AIR runs on desktop with no problem, as well FP10 targeted SWF.

Tho, when compiling to BAR it says nothing else that "yey we did it and app is not instlaled and launched on Simpulator", yeah...  how about that.

 

What i see is this:

 

screenshot.png Ive now tried with 3 different apps and none of these are working as they suppose to.

 

 

 

 

 

 

 

 

But in terminal i get no errors:

 

 

Flashguru:~ danne$ /Applications/Adobe\ Flash\ Builder\ Burrito/sdks/blackberry-tablet-sdk-0.9.1/bin/blackberry-airpackager -package /Users/danne/Dropbox/Privat/AirBox_BP/AirBox.bar -installApp -launchApp /Users/danne/Dropbox/Privat/AirBox_BP/AirBoxBP-app.xml  /Users/danne/Dropbox/Privat/AirBox_BP/AirBoxBP.swf -device 172.16.215.130 -password figaro
Using default icon: /Applications/Adobe Flash Builder Burrito/sdks/blackberry-tablet-sdk-0.9.1/bin/../samples/icons/blackberry-tablet-default-icon.png
Package created: /Users/danne/Dropbox/Privat/AirBox_BP/AirBox.bar
Sending Install request...
Info: Action: Install
Info: File size: 10423
Info: Installing ...
actual_dname::com.as3breeze.logitech.airbox.bG9naXRlY2guYWlyYm94ICAgICA
actual_id::bG9naXRlY2guYWlyYm94ICAgICA
actual_version::1.0.0.0
result::success
Sending Launch request...
Info: Action: Launch
Info: Launching com.as3breeze.logitech.airbox.bG9naXRlY2guYWlyYm94ICAgICA...
result::987175
Info: done
Flashguru:~ danne$ 

 

i see .bar file in same dir, so it seems to compiled right..

 

Here is somehting interesting, i found a previous post here on the forums where "actual_id" was the same as mine, but applications are of course different. How come 2 people can get 1 exact same ID ?

 

Anyhow, compiling says it all works, but in simulator, it doesnt.

 

As mentioned, it all worked fine about 3 days ago. But then something happend.

i havent installed anything new, och changed anything.

Its worth to mention that i needed to record a tutorial on that, so i erased my simulator from Fusion and it all started after that.

 

Here is a bit info

Mac OS X 10.6.6

Flah professional CS5 (Legal one of course!)

VMWare Fusion 3.1.2 (332101)

Latest AIR BP SDK 0.9.4 i think i is (or something with 9.4 i know:smileytongue: )

simulator should be latest (havent seen any update)

 

Fla file has 3 directories imported from SDK (AIR, qnx-screen and blackberry) just like renaun shows

and trying to compile SWF as seen above 

 

So, what am i missing ?

 

Download my test project to test compiling ? link (Dropbox) »

Note: ive included FLA, SWF, .XML as well .BAR for testing and debugging.

 

 

 

Please use plain text.
Regular Contributor
renaun
Posts: 86
Registered: ‎10-25-2010
My Device: Not Specified

Re: Application not installed correctly

I tried your .bar file and it had the same error. I re-packaged the file with the SWF and -app.xml you provided and the application then worked correctly.

 

I used the latest 0.9.4 SDK and simulator.

 

Here was the command line calls i made:

renaunmbp:Archive renaun$ /Applications/Adobe\ Flash\ Builder\ Burrito/sdks/blackberry-tablet-sdk-0.9.4/bin/blackberry-airpackager -installApp -launchApp -device 192.168.115.138 -password xxxxx -package AirBox.bar AirBoxBP-app.xml AirBoxBP.swf

 

renaunmbp:Archive renaun$ /Applications/Adobe\ Flash\ Builder\ Burrito/sdks/blackberry-tablet-sdk-0.9.4/bin/blackberry-deploy -installApp -launchApp -device 192.168.115.138 -password xxxxx -package AirBox.bar

blog: http://renaun.com
twitter: @renaun
Please use plain text.
Regular Contributor
Danel
Posts: 54
Registered: ‎03-16-2011
My Device: PlayBook
My Carrier: Developer

Re: Application not installed correctly

hi renaun,

thanx for testing it.

 

i found a solution but i dont know what the problem was.

 

i re-typed commandline cmd and then it all worked perfectly. but i get an error which doesnt seem to stop air app for installing and launching.

 

Even if i get this error it seemes everything is going smoothly. hopefully it doesnt mess upp anything when submitting  my app on appworld.

 

 

Invalid manifest file /var/folders/BK/BKcEsZXxGTywbLgfEs0TFU+++TQ/-Tmp-/bar7274116018624306132.MF.
Invalid value '1.0.0' for Package-Version.
Package created: AirBox.bar
Sending Install request...
Info: Action: Install
Info: File size: 94412
Info: Installing ...
actual_dname::AirBox.testQWlyQm94ICAgICAgICAgICA
actual_id::testQWlyQm94ICAgICAgICAgICA
actual_version::1.0.0
result::success
Sending Launch request...
Info: Action: Launch
Info: Launching AirBox.testQWlyQm94ICAgICAgICAgICA...
result::1585193
Info: done

 

Please use plain text.
Regular Contributor
renaun
Posts: 86
Registered: ‎10-25-2010
My Device: Not Specified

Re: Application not installed correctly

that is interesting error. You can try changing the version from 1.0.0 to 1.0 or 1.1 or 1.1.0 and see if it gets rid of the error.

blog: http://renaun.com
twitter: @renaun
Please use plain text.
Regular Contributor
Danel
Posts: 54
Registered: ‎03-16-2011
My Device: PlayBook
My Carrier: Developer

Re: Application not installed correctly

[ Edited ]

Yes that fixed the error (copy-paste at the bottom)

 

tho i got another question, i think this (tutorial?) is also from your blog.

 

ive been googleing without any results.

 

im trying to add LoginDialog in my app, but i get lots of errors, same with AlertDialog. Only thing basicly that is working is Button (as far ive tested).

Down here are all these errors coming up in AIR when launching it:

 

 

(Note: forum seems to add css styles auto in my post :smileyfrustrated:)

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}

VerifyError: Error #1079: Native methods are not allowed in loaded code.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}

ReferenceError: Error #1065: Variable ActivityIndicatorSkin is not defined.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}

ReferenceError: Error #1065: Variable SkinAssets_ProgressBarLargeFillWhite is not defined.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}

ReferenceError: Error #1065: Variable SkinAssets_DropDownButtonDownWhite is not defined.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}

ReferenceError: Error #1065: Variable SkinAssets_SliderThumbDisabledBlack is not defined.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}

ReferenceError: Error #1065: Variable SkinAssets_TextInputPressedWhite is not defined.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}

ReferenceError: Error #1065: Variable SkinAssets_ToggleSwitchButtonOnDisabledWhite is not defined.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}

ReferenceError: Error #1065: Variable SkinAssets_DropDownPieceBlack is not defined.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}

ReferenceError: Error #1065: Variable SkinAssets_DropDownBgrBlack is not defined.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}

ReferenceError: Error #1065: Variable SkinAssets_ProgressBarLargeFillBlack is not defined.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}

ReferenceError: Error #1065: Variable SkinAssets_DropDownButtonDisabledBlack is not defined.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}

ReferenceError: Error #1065: Variable SkinAssets_ButtonPressedBlack is not defined.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}

ReferenceError: Error #1065: Variable SkinAssets_SegmentedControlBgrWhite is not defined.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}

ReferenceError: Error #1065: Variable SkinAssets_SegmentedControlPressedWhite is not defined.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}

ReferenceError: Error #1065: Variable SkinAssets_SliderThumbPressedBlack is not defined.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}

ReferenceError: Error #1065: Variable SkinAssets_ShadowDividerBottom is not defined.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}

ReferenceError: Error #1065: Variable SkinAssets_ShadowDividerTop is not defined.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}

ReferenceError: Error #1065: Variable SkinAssets_GroupListHeaderWhite is not defined.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}

ReferenceError: Error #1065: Variable SkinAssets_PickerButtonUpBlack is not defined.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}

ReferenceError: Error #1065: Variable SkinAssets_PickerButtonPressedBlack is not defined.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}

ReferenceError: Error #1065: Variable SkinAssets_PickerButtonDisabledWhite is not defined.

.... and so on, i stopped counting after 50 errors, then i hit Dismiss all.

 

 

anyidea what i could be ?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Flashguru:AirBox_BP danne$ /Applications/Adobe\ Flash\ Builder\ Burrito/sdks/blackberry-tablet-sdk-0.9.4/bin/blackberry-airpackager -package AirBox.bar -installApp -launchApp AirBox-app.xml AirBox.swf -device 172.16.215.130 -password figaro
Using default icon: /Applications/Adobe Flash Builder Burrito/sdks/blackberry-tablet-sdk-0.9.4/bin/../samples/icons/blackberry-tablet-default-icon.png
The bar manifest file is valid.
Package created: AirBox.bar
Sending Install request...
Info: Action: Install

Flashguru:AirBox_BP danne$ /Applications/Adobe\ Flash\ Builder\ Burrito/sdks/blackberry-tablet-sdk-0.9.4/bin/blackberry-airpackager -package AirBox.bar -installApp -launchApp AirBox-app.xml AirBox.swf -device 172.16.215.130 -password figaroUsing default icon: /Applications/Adobe Flash Builder Burrito/sdks/blackberry-tablet-sdk-0.9.4/bin/../samples/icons/blackberry-tablet-default-icon.pngThe bar manifest file is valid.Package created: AirBox.barSending Install request...Info: Action: Install

 

Please use plain text.
Regular Contributor
Danel
Posts: 54
Registered: ‎03-16-2011
My Device: PlayBook
My Carrier: Developer

Re: Application not installed correctly

Please note that im using Flash Prof Cs5

Please use plain text.
Regular Contributor
renaun
Posts: 86
Registered: ‎10-25-2010
My Device: Not Specified

Re: Application not installed correctly

Maybe you are not including some files in to the package that it is looking for.

 

What is the code look like that is calling these embedded assets look like?

blog: http://renaun.com
twitter: @renaun
Please use plain text.
Regular Contributor
Danel
Posts: 54
Registered: ‎03-16-2011
My Device: PlayBook
My Carrier: Developer

Re: Application not installed correctly

[ Edited ]

I really didnt had anything that actually importet those classes.

 

All i did was i found  LoginDialog example code (in documentation) and pasted it into my project.

Firstly i complained bout the IowWindow but after a while it stopped, then it started to complain about these errors as show above.

 

That exact code i used would look like this: its basicly just copy-paste

(Worth to mention that i also import qnx.* and other classes

 

import qnx.*;

import qnx.dialog.AlertDialog;

import qnx.dialog.DialogSize;

import qnx.dialog.LoginDialog;

import qnx.display.IowWindow;

import qnx.ui.buttons.Button;

import qnx.ui.buttons.LabelButton;

import qnx.ui.skins.*;

 

 

 

var login:LoginDialog = new LoginDialog();
            login.title = "Device is locked";
            login.message = "Please enter your username and password:";
            login.addButton("OK");
            login.addButton("Cancel");            
            login.passwordPrompt = "password";
            login.rememberMeLabel = 'Remember me';
            login.rememberMe = true;
            //login.dialogSize= DialogSize.SIZE_SMALL;
            login.addEventListener(Event.SELECT, dButtonClicked); 
            login.show(IowWindow.getAirWindow().group);

Another question  about signing:

I just got mail with cjf (or what it was) file and instructions, but on the web is signing for FB 4 and 4.5 Burrito.

Is it possible to sign via FPro  or can it be done with FB 4 / 4.5 ?

Please use plain text.
Developer
thesmileman
Posts: 345
Registered: ‎03-13-2011
My Device: Playbook
My Carrier: n/a

Re: Application not installed correctly

@Danel, You can only sign with FB 4 or 4.5 or the command line. 

Please use plain text.
Regular Contributor
renaun
Posts: 86
Registered: ‎10-25-2010
My Device: Not Specified

Re: Application not installed correctly

I see did you include the QNX SWC libraries into your Flash Pro project?

 

http://renaun.com/blog/2010/11/building-blackberry-playbook-apps-with-flash-professional-cs5/

blog: http://renaun.com
twitter: @renaun
Please use plain text.