Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to exchange data between two Blackberry Applications?
    primarykey
    data
    text
    <p>To exchange data between apps I have created 2 applications, one is a UI application and the other is a background application, by setting an <a href="http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/How_To_-_Setup_an_alternate_entry_point_for_my_application.html?nodeid=800820&amp;vernum=0" rel="nofollow noreferrer">alternate entrypoint</a><br><br> I was able to find a <a href="https://stackoverflow.com/questions/2920839/how-can-i-call-background-application-from-ui-applicationblackberry">similar question</a> but was not able get the help I need there<br><br> I am able to create <a href="http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/796557/800332/800620/What_are_-_Global_Events_and_Global_Event_Listeners.html?nodeid=800527&amp;vernum=4." rel="nofollow noreferrer">Global Events and a Global Listener</a>, but my problem is how to transfer Data from one application to another. <br><br> In UI APPLICATION we can post globalEvent</p> <pre><code>ApplicationManager.getApplicationManager().postGlobalEvent(0xba4b84944bb7); </code></pre> <p>In Background Application we can Listen and send the Acknowledgement </p> <pre><code>public void eventOccurred( long guid, int data0, int data1, Object object0, Object object1) { //Is this the GlobalEvent we are waiting for? //Long = com.samples.globalEventFiring.GlobalEventListening if (guid == 0x7d3a74a5ccfe6483L) { //Yes it is. System.out.println("Acknowledgement received."); UiApplication.getUiApplication().invokeLater(new Runnable() { public void run() { Dialog.alert("Event was fired and acknowledged."); } }); } } </code></pre> <p>But how to transfer data from background application to ui application.How UI application can access data or objects of background application.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload