Hi,
I developed one midlet. This midlet is accessing my web server for each and every 10 minutes. If I am in flight(offline) mode also trying to connect webserver. I need to restrict this behavior. Please help me, how to restrict this.
Regards
Siva
Hi,
I developed one midlet. This midlet is accessing my web server for each and every 10 minutes. If I am in flight(offline) mode also trying to connect webserver. I need to restrict this behavior. Please help me, how to restrict this.
Regards
Siva
Last edited by pedda.patti@ps.net; 2006-11-07 at 06:59.
I would say the easiest solution is asking the user before the first connection attempt, that will the user use the app offline or in connected mode and handle this flag inside your midlet
Hartti
HI Hartti,
Thank you for your reply. Is there any method to get the mode. I want the solution like,
if(!flightmode){
//Open the connection
}
.....
.....
Please help me in this problem.
Siva.....
hi guys,
isn't IOException thrown in such case? (no valid connection can be established due to network failure/unavailability)
so it should be rather handled properly and scheduled reconnection should be postponed until user explicitely confirms warning dialog about connection unavailability?
regards,
peter
Good point Peter, handling the exceptions might be the most sensible route to use.
Hartti