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

Java Development

Reply
Contributor
Posts: 41
Registered: ‎08-28-2011
My Device: 9800
Accepted Solution

How to access my UI application from alternate entry point ?

I have one UI App with an alternate entry point . In alternate entry point i set fix time and always check  this time ( use RealTimeClockListener ). If smartphone go to this time, it will push a screen from my UI App. And It pushed succesfully. In this screen have some button ex "New button", generally when I run my UI App and click it, it will push a new Screen.  But in this case when screen is pushed from alternate entry point, I can not make action for this screen , I click "New button " and no thing display.. 

 

How can I solve this problem ?

Developer
Posts: 16,574
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: How to access my UI application from alternate entry point ?

you can use a shared service in the runtime store. or post a global event.
use ApplicationManager to post a global event, and register a GlobalEventListener with your application class to listen to it.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
Posts: 41
Registered: ‎08-28-2011
My Device: 9800

Re: How to access my UI application from alternate entry point ?

thanks Simon, Can you give me one example for Global Event
Developer
Posts: 16,574
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: How to access my UI application from alternate entry point ?

did you take a look at the API?
http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/ApplicationManager.html shows an example.
to get a GUID you can use the "convert string to long" functionality of the eclipse plugin.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter