12-10-2012 04:20 PM
Really good article in using the invocation framework for AIR can be found here:
12-11-2012 12:46 PM
01-15-2013 07:54 AM
Thanks for your article.
I don´t now that is necessary all code related with UIComponent to build a CLIENT, the official BB10 documentation don´t say about it.
I try to use this class but when i run this functionallity i don´t receive any response, the listeners appears don´t work
My app needs to call the web browser to load any url.
Im working with Flash Builder 4.6 on Windows, i add invoke-target in bar-descriptor file, and create a instance of InvokedViewer and call method thus:
The id is my application ID
var data : ByteArray = new ByteArray();
var invoker : InvokerViewer = new InvokerViewer();
"sys.browser", "bb.action.OPEN", data);
I`m testing it in BB10 simulator.
thanks for your help.
01-15-2013 08:47 AM
01-15-2013 10:02 AM
I've read the tutorial, but I still don't really understand how we're supposed to test this thing, or where the BB10 'schema's are hosted.
Simply put, I have a Photo Editor, and would like to edit Photo's that are sent my way. Is this even possible? All I need is a URL... I can do everything from there.
I know I could send a generic Invoke from some HelloWorld app, and maybe that would invoke my App, but what I really want to test is integration with the core OS / Gallery. Any way we can do that?
01-15-2013 10:12 AM
Ok, understand, but i don´t know the difference in InvokedViewer.as between id and target parameters in
public function requestTarget( id: String, target : String, action : String, data : ByteArray ) : void
Please sayme that means.
01-15-2013 11:11 AM
01-15-2013 11:17 AM
01-15-2013 12:07 PM
I need two things with invocation framework:
1. Invoke the web browser to open specific url
2. Open Facebook App o Mail client to send image provided by my application
then i undestand that my targets for these purposes are: sys.browser and Facebook according to web page invoking_core_apps.html, then i don´t know if InvokedViewer its useful for this requirement.
One very important question is if i can test Invocation framework funcionalities in BB10 emulator? or i need test this in real device?
I try the functionallity described in this blackberry page https://developer.blackberry.com/air/documentation
Finally, if you can provide me any full and simple example with this functionality, I would appreciate.
01-15-2013 01:16 PM - edited 01-15-2013 01:16 PM
The InokeViewer class is only for embedding an app into your app. In the examples you gave, you would not need to use this since those apps would be an opened outside of your app as either a card or as a full app.
As far as I have seen, email invocation has not been published officially.
If the app is in the simulator, you can test it. You will have to wait to test Facebook, but its interface is pretty simple, so it should work as advertised.
That link will probably not work since the image viewer is not installed in the simulator or the current dev alpha device.
Once you create your request, you just need to invoke it to the invoke manager. Let me know if you need more.