If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

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
raj_jyani
Posts: 107
Registered: ‎05-11-2011
My Device: BlackBerry Z10 LE
My Carrier: AirTel
Accepted Solution

When miss call occure all varibale lost reference and reset

Hi ,

 

any one know why i lost all varible's  value when incoming call and miss call .

my variable is static and i set create object on constructor and constructor is called only one time.

everything is work fine but when miss call occure i got a value of variable null .

anyone know how to resolve this problem ?

 

Please use plain text.
Developer
simon_hain
Posts: 15,908
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: When miss call occure all varibale lost reference and reset

welcome to the support forum.
static variables are not global on the BB. The phonelistener runs in the context of the phone application and does not access the values stored in your main applications static variables.

use global events or the runtimestore to return to the context of your app (don't execute code in the phonelistener).
----------------------------------------------------------
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
Please use plain text.
Developer
raj_jyani
Posts: 107
Registered: ‎05-11-2011
My Device: BlackBerry Z10 LE
My Carrier: AirTel

Re: When miss call occure all varibale lost reference and reset

thanx ,

 

it working , done by store

Please use plain text.