How to use ksoap timeout in blackberry?
I would like to make make userregistartion app in Blackberry. In which I have used ksoap2 to send request to server and get response from server.
I want that when I send request to server and within 10 second if server not give any response than say any msg like "Try again". and before 10sec server give response then proceed fu开发者_如何学Gorther.
How's this possible? Is there used TimerTask or any method for Tomeout in Ksoap?
may be the following example will helpful for you:
String ht_params = ";ConnectionTimeout=10000"; // 10 seconds timeout
HttpTransport ht = new HttpTransport(this.SERVICE_URL + ht_params);
I'm from Russia, so my English is very bad.
精彩评论