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
Developer
Ebscer
Posts: 875
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha
Accepted Solution

Definition qnx.invoke:InvokeManager could not be found

I am trying to use some invokation methods in my app. However it always fails on the line

import qnx.invoke.InvokeAction

 with the message of

Definition qnx.invoke:InvokeManager could not be found

 I am not sure where else this class could be hidden. I am using the Gold BB10 SDK


Read my thoughts on BlackBerry Development at news.ebscer.com
Please use plain text.
Developer
Ebscer
Posts: 875
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha

Re: Definition qnx.invoke:InvokeManager could not be found

[ Edited ]

The issue may be related to the linking of QNXDevice.ane but that all looks as if it is set up properly. I am listing <extensionID>qnx.system.QNXDevice</extensionID> in my .xml file and have included QNXDevice.ane in the packaging...

 

The .ane is attaching properly. This is actually failing on the step before where amxmlc is not properly creating the .swf so I am thinking that I need to link against a related .swc but am not sure which one...


Read my thoughts on BlackBerry Development at news.ebscer.com
Please use plain text.
Developer
UberschallSamsara
Posts: 1,029
Registered: ‎12-29-2010
My Device: PlayBook, Z10 LE, Dev Alpha C

Re: Definition qnx.invoke:InvokeManager could not be found

I looked through all the gold SDK swc's with the package explorer in my IDE and didn't find the qnx.invoke package.

 

The tutorial does't mention what swc this package supposedly lives in.

 

RIM:   help?

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: Definition qnx.invoke:InvokeManager could not be found

Are you importing:
import qnx.invoke.InvokeManager;
?
Odd that it is failing on an import that is not the manager.
I only have the device and skin ane linked and I do not get the error.

Do you have "Add platform specific libraries to library path" checked?

I looked into all the QNX SWC files that are in my project and I dont see the invoke directory anywhere, so I have to assume it is in the device ANE.
Please use plain text.
Developer
Ebscer
Posts: 875
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha

Re: Definition qnx.invoke:InvokeManager could not be found

I am doing this from the command line.

 

Thing is that QNXSkins.ane is working fine. I am going to try and see if I can get this to work in a more bare bones program...


Read my thoughts on BlackBerry Development at news.ebscer.com
Please use plain text.
Developer
UberschallSamsara
Posts: 1,029
Registered: ‎12-29-2010
My Device: PlayBook, Z10 LE, Dev Alpha C

Re: Definition qnx.invoke:InvokeManager could not be found

[ Edited ]

Yep, that's where it is (QNXDevice.ane).  I was confused by 1) The fact that I haven't read up on how ANE's really work and are packaged, and 2) the fact that the fuse.ui components except for the skins, live in qnxui.swc.

 

I'm using FlashDevelop, not Flash Builder, but once I added the device ANE to the library it compiles fine.

BTW I just use FlashDevelop compile for flushing gross errors of syntax & linkage; for sim & device targeted

builds I use the commandline.  For anyone reading this who uses the commandline as well, and who hits

this problem, you'll (apparenly) need to add the full path to the device ANE to your library path options, i.e.

I added:

 

-compiler.library-path %BBSDKPATH%\frameworks\libs\qnx\ane\QNXDevice.ane

 

to my amxmlc commandline, and all was forgiven.   (This is in a Windows batch file, hence the

backslashes, and %BBSDKPATH% contains the path to my SDK install).

 

Edit:  Note that per the compiler docs, "You can specify a directory or individual SWC files."  For the

SWC's I link to, I just supply the directory path.  I tried to do that for the device ANE and it wouldn't take;

I had to put QNXDevice.ane on the tail of the path to get it to compile.

Please use plain text.
Developer
Ebscer
Posts: 875
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha

Re: Definition qnx.invoke:InvokeManager could not be found

That fixed it. Odd that it works differently from QNXSkins.ane

 

Also seems to work with a relative path...


Read my thoughts on BlackBerry Development at news.ebscer.com
Please use plain text.