Click here to Skip to main content
15,921,210 members
Home / Discussions / Java
   

Java

 
AnswerRe: Substring issue Pin
Richard MacCutchan15-Jun-10 21:56
mveRichard MacCutchan15-Jun-10 21:56 
AnswerRe: Substring issue Pin
David Skelly15-Jun-10 22:35
David Skelly15-Jun-10 22:35 
GeneralRe: Substring issue Pin
CodeScribbler17-Jun-10 2:43
CodeScribbler17-Jun-10 2:43 
QuestionEmulating a serial communication through RFCOMM Pin
ant-damage14-Jun-10 10:36
ant-damage14-Jun-10 10:36 
QuestionNokia 2323 DateTime Issue??? Pin
Member 211994514-Jun-10 2:56
Member 211994514-Jun-10 2:56 
AnswerRe: Nokia 2323 DateTime Issue??? Pin
Richard MacCutchan14-Jun-10 4:39
mveRichard MacCutchan14-Jun-10 4:39 
GeneralRe: Nokia 2323 DateTime Issue??? Pin
Member 211994514-Jun-10 14:22
Member 211994514-Jun-10 14:22 
GeneralRe: Nokia 2323 DateTime Issue??? Pin
David Skelly14-Jun-10 22:48
David Skelly14-Jun-10 22:48 
Member 2119945 wrote:
Why does the calendar object need a seed value...???


It doesn't. By default, Calendar.getInstance() will return a calendar object initilised to the current date and time, using the current timezone and locale. The J2ME Calendar is a cut-down version of the J2SE class with some methods removed but it has the same default constructor.


Member 2119945 wrote:
What do you mean to "check the value returned from System.currentTimeMillis()"...???


Well, the code that you have posted looks correct, there are no errors in the code. So, if there is nothing wrong with the code, the obvious next point to investigate is the value which you are using to seed the calendar. If you put the wrong value in at the start of the process, you will get the wrong value out at the end.

Is it possible that for some reason System.currentTimeMillis is returning the wrong value? Not sure why that would happen (time zones?), but I agree with Richard and that would be the next thing I check. That's not so easy to do if this is happening unpredictably, I agree.

Maybe you could search the Nokia S40 forums to see if anyone else has any issues with currentTimeMillis (S40 may not be the correct platform for this phone type - I'm not sure but you get the idea).
GeneralRe: Nokia 2323 DateTime Issue??? Pin
Member 211994515-Jun-10 1:51
Member 211994515-Jun-10 1:51 
GeneralRe: Nokia 2323 DateTime Issue??? [modified] Pin
Richard MacCutchan15-Jun-10 3:54
mveRichard MacCutchan15-Jun-10 3:54 
GeneralRe: Nokia 2323 DateTime Issue??? Pin
David Skelly15-Jun-10 4:24
David Skelly15-Jun-10 4:24 
GeneralRe: Nokia 2323 DateTime Issue??? Pin
Richard MacCutchan15-Jun-10 5:01
mveRichard MacCutchan15-Jun-10 5:01 
GeneralRe: Nokia 2323 DateTime Issue??? Pin
David Skelly15-Jun-10 6:40
David Skelly15-Jun-10 6:40 
GeneralRe: Nokia 2323 DateTime Issue??? Pin
Richard MacCutchan15-Jun-10 6:59
mveRichard MacCutchan15-Jun-10 6:59 
GeneralRe: Nokia 2323 DateTime Issue??? Pin
Member 211994515-Jun-10 14:17
Member 211994515-Jun-10 14:17 
QuestionHow can I add Resources with jar file? Pin
002comp13-Jun-10 18:20
002comp13-Jun-10 18:20 
AnswerRe: How can I add Resources with jar file? (Solved) Pin
002comp13-Jun-10 18:50
002comp13-Jun-10 18:50 
QuestionSending of byte array messages to an VB Receiving Emulator application Pin
pohcb_sonic10-Jun-10 18:43
pohcb_sonic10-Jun-10 18:43 
AnswerRe: Sending of byte array messages to an VB Receiving Emulator application Pin
Richard MacCutchan10-Jun-10 23:15
mveRichard MacCutchan10-Jun-10 23:15 
GeneralRe: Sending of byte array messages to an VB Receiving Emulator application [modified] Pin
pohcb_sonic14-Jun-10 14:40
pohcb_sonic14-Jun-10 14:40 
GeneralRe: Sending of byte array messages to an VB Receiving Emulator application Pin
Richard MacCutchan15-Jun-10 4:48
mveRichard MacCutchan15-Jun-10 4:48 
QuestionHow to resizethe backGround Image to JPanel? Pin
002comp9-Jun-10 1:48
002comp9-Jun-10 1:48 
AnswerRe: How to resizethe backGround Image to JPanel? Pin
David Skelly9-Jun-10 5:22
David Skelly9-Jun-10 5:22 
GeneralRe: How to resizethe backGround Image to JPanel? Pin
002comp9-Jun-10 17:52
002comp9-Jun-10 17:52 
GeneralRe: How to resizethe backGround Image to JPanel? Pin
David Skelly9-Jun-10 22:26
David Skelly9-Jun-10 22:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.