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
Developer
Posts: 59
Registered: ‎06-15-2012
My Device: 9800
Accepted Solution

Pull request notification

 

 

Hi,

        I have alternate entry point applcation. in which background thread will start when device is switched on. and when i tap on ui application icon it will launch the application . up to here every thing is fine. 

but when i am try  get preference object  of ui application in background thread that time  i am getting the runtime exception

 "application already running in this process"

how to solve this error?

 

 i have some helper class which is defined in ui application and i want to use in background thread how can i do that??

and i want to get preference object value from ui applcation how can i access??

please share idea to slove this problem..

 

 

Thanks

JaM321

 

 

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

Re: Pull request notification

i would suggest to use runtimestore for inter process communication.
http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/RuntimeStore.html

another option would be global events.
----------------------------------------------------------
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
Developer
Posts: 59
Registered: ‎06-15-2012
My Device: 9800

Re: Pull request notification

hey simon thanks for replay i have one question how can get the preference object value which is alreay stored in the persistant store . and that  persistant object i want fetch from background process. can u give hint or example how cani do this using global events.


Thanks 

JaM321


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

Re: Pull request notification

persistant objects can be accessed from everywhere, so you can access it from the background process as well.
----------------------------------------------------------
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
Developer
Posts: 59
Registered: ‎06-15-2012
My Device: 9800

Re: Pull request notification

thanks simon :smileyhappy:

have good time.

 

 

Thanks

JaM321

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

Re: Pull request notification

please mark the thread as solved if your issue was resolved.
----------------------------------------------------------
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