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: 1,635
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

GUID_TIMEZONE_CHANGED not working on the real device

I'm listening to the global timezone change event with

 

net.rim.device.api.util.DateTimeUtilities.GUID_TIMEZONE_CHANGED

 

If I goto the Options->datetime screen and change the timezone this works on the simulator but it does not work on my Pearl 8100.

 

anybody know why?

BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: GUID_TIMEZONE_CHANGED not working on the real device

What version of BlackBerry handheld software are you running?  You can find this under Options, About on the BlackBerry.  Is the BlackBerry Simulator you are testing on running the same version?

 

Can you provide a code snippet of how you are listening for and displaying the event?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 1,635
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Re: GUID_TIMEZONE_CHANGED not working on the real device

Pearl 8100 Rogers

OS 4.2.1.109 (platform 2.3.0.85)

 

Note: sometimes it will work when i plug into the USB cable.  Then the annoying problem occurs.  It always change the timezone back to Eniwetok (-12) which is very very annoying.

 

 

Listener:

 

 

UiApplication.getUiApplication().addGlobalEventListener(new globalListener());

 

 Listener class:

 

 

static class globalListener implements GlobalEventListener { public void eventOccurred(long guid, int data0, int data1, Object object0, Object object1) { if (guid == net.rim.device.api.util.DateTimeUtilities.GUID_TIMEZONE_CHANGED) { // do something } } }

 

 

 

 

BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: GUID_TIMEZONE_CHANGED not working on the real device

Can you verify whether your application is not receiving any global events, or if it is not receiving the event when the time zone changes.  Note that after changing the time zone under Options, Data/Time you need to save the options before the global event will be fired.

 

Here is an example you can use to see if your application is able to listen for global events (fire an event from the GlobaEventsFiring application).

 

 What Is - Global Events and Global Event Listeners
Article Number: DB-00145

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800620/What_Is...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker