07-29-2008 04:13 AM
Quote From Previous Forum:
I've knocked up a little Java app that takes the timestamp from the BlackBerry device. This causes a problem because the user can change device time settings so incorrect data/time info gets captured.
To solve this I tried using:
//fetching network time
long networkTime = netInfo.getNetworkTime(System.currentTimeMillis() );
This seems to work on a BlackBerry simulator, i.e. if I change the simulator time, the correct time is still captured. My question is: How does this work and where is the 'network time' actually being captured from when using a real device?
Also, if there are other ways of doing this I would be happy to hear about them
The network time is provided by the cellular network in case of a real device and your desktop computer in case of a simulator.
Not all kinds of networks provide network time, and if provided, it will be unavailable when the radio is off.
Its better to use the time provided by the device in almost all cases. If people are changing the time, they must have a reason.
Agree that Network may not be available while Radio OFF, but it is still interesting (and my need) to find if the Device's Date/Time source is set to Blackberry Network or is OFF.
Any way for that?
Thanks in Advance,
Any one knows, if the Device's Date/Time source is set to Blackberry Network or is OFF.
07-29-2008 10:21 AM
09-04-2008 12:15 PM
Just taking a look at the API doc for getNetworkTime(). For a network that does not contain network time, what value would be returned?
The application we are writing involves BlackBerries across many networks. We would need to test getNetworkTime to ensure its is quality before using it.
05-03-2010 05:30 PM
there is a tricky solution, the thing is when you change ur timezone, I think Blackberry thinks that you dont want autotime zone feature on (even tough it says its on). so what I did was I set the timezone to my home time zone which was EST and turn the auto update time zone off and save and turn the auto update time zone on and save, and it worked, it changed the time zone to CST that where I was.