07-04-2013 06:36 AM
I am try to give connection timeout for y app for that sample code is
HttpConnection con = ()Connector.open(url + ";deviceside=true;ConnectionTimeout=10000" );
when i run this app in simulator i am not getting exception ,
in console it shows like "Device is a simulator and USE_MDS_IN_SIMULATOR is false"
i have checked launchMobile data system connection service(MDS-CS)with simulator
can anyone tell me how to fix the issue
07-05-2013 06:58 AM
ConnectionTimeout is not supported for ";deviceside=true"
Have a look at this KB article.
There are various ways of connecting, this KB article talks about them:
Rather than specify this yourself, I recommend that you use ConnectionFactory - review the API and there are a number of Threads that talk about it on here.
Finally, with respect to timing out connection, there are other Threads that talk about this - search - but I think this Thread summarizes most of the important points: