Discussion Board

Results 1 to 5 of 5
  1. #1
    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.

  2. #2
    Nokia Developer Champion hartti's Avatar
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192
    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

  3. #3
    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.....

  4. #4
    Super Contributor peterblazejewicz's Avatar
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,699
    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

  5. #5
    Nokia Developer Champion hartti's Avatar
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192
    Good point Peter, handling the exceptions might be the most sensible route to use.

    Hartti

Similar Threads

  1. Capability to close APN Connection
    By AlfredoRU in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 2
    Last Post: 2007-05-23, 12:48
  2. HTTP APN Problem
    By MananW in forum Mobile Java Networking & Messaging & Security
    Replies: 5
    Last Post: 2006-07-07, 07:09
  3. Opera launching with specific APN
    By _fran in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-04-06, 11:34
  4. Replies: 2
    Last Post: 2004-11-16, 08:29
  5. Default WAP APN retrieval from CommDB
    By yoalat in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2004-08-11, 20:50

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved