Help Creating Sequence Number
posted 11 years ago
I have a wireless app that uses UDP for communication with the server. I need to create a unique sequence number for each message for my acknowlegement mechanism. I was planning on using getTimeInMillis, but apparently that is not available in J2ME. Does anyone have a good alternative to this? I'd like to use a long for the value. The sequence number needs to be unique only for one phone. The server uses getTimeInMillis quite nicely. Any help greatly appreciated.