I use Connectorin J2ME and found that sometimes it takes a very long time to send a request, and sometimes it can stop the whole process.Therefore, I am trying to put the code associated with Connectorin the stream and try to set the timeout on the stream. But I found out that it is very difficult to do in J2ME because there is no in J2ME join(timeout).Is there any way to do this? Or the best way to deal with network connectivity in J2ME?Thank you very much in advance.
Connector
join(timeout)
You must use a combination of three mechanisms:
Connector.open()
Thread.sleep()
Connection.close()
Thread.interrupt()
MIDP Connection.close() , . , .
Thread.interrupt() MIDP ( ) , .
Source: https://habr.com/ru/post/1744472/More articles:Dynamically create Widgets on Android - androidhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1744468/any-reasons-to-recompile-silverlight-3-controls-for-silverlight-4&usg=ALkJrhjukVEbWzAI4f9SKsYbTweDOm8peQAccess error 3443: unrecognized database format 'databasename.mdb' - ms-accessTool to convert a .Glade (or xml) file to a C source - cHow to format a date as a localized string Short MonthDay - c #Glassfish 3: How do I get and use the developer assembly so that I can navigate the stack trace, including the Glassfish code? - javagae error: AttributeError: object "NoneType" does not have attribute "user_is_member" - pythondo not use "using" expression for TransactionScope - c #WPF4 DatePicker - adding time - datetimeCreating a nail image on the main page of a web page in a link - jqueryAll Articles