How to implement thread timeout in J2ME?

Posted by lilo on Stack Overflow See other posts from Stack Overflow or by lilo
Published on 2010-05-07T08:41:36Z Indexed on 2010/05/07 8:48 UTC
Read the original article Hit count: 248

Filed under:
|
|
|
|

I am using Connector in J2ME and found that sometimes it take a very long time to send a request, and sometime it may halt the whole process.
So I try to put code related to Connector in a thread and try to set timeout to the thread. But I found out that it's very difficult to do this in J2ME because there's no join(long) in J2ME.
Is there any way to do this? Or any better way to deal with network connection in J2ME?
Thanks a lot in advance.

© Stack Overflow or respective owner

Related posts about j2me

Related posts about java