Reputation: 11
I'm still new to BlackBerry development but I am trying to find a way that if I have a WebWorks Application (Application A) and a native Application B, I would like to launch Application B with some data provided from Application A. Once Application B, it then needs to be able to pass some more data back to Application A.
I have started looking around and read through the blackberry.launch api
https://origin-bdsc.webapps.blackberry.com/html5/documentation/ww_webrefs/blackberry_launch_971534_1...
but from there I only see that you are able to launch specific applications.
Any advice here is appreciated. Kind Regards, Michael
Upvotes: 1
Views: 198
Reputation: 662
If this is a real WebWorks applicaton, use blackberry.invoke.invoke with JavaArguments:
<script type="text/javascript">
var args = new blackberry.invoke.JavaArguments('net_rim_bb_memo_app');
blackberry.invoke.invoke(blackberry.invoke.APP_JAVA, args); // Java
</script>
EDIT: I didn't read the part about passing data back to Application A. You'll either need:
Upvotes: 3