×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    44

    GPRS connection closing problem

    Please help me,
    I have problem to close GPRS connection. I use Nokia 6630
    When i use something like:

    HttpConnection c = new HttpConnection.open(url);
    InputStream is = c.openOutPutStream();
    is.write(data);
    is.close();
    c.close();
    //(of course in separate Thread)

    Everything works well, but after the code has finished the GPRS connection is still open.
    I need to close it in connection manager. How can i close GPRS connection form java? Or is something from above code wrong?

  2. #2
    Nokia Developer Expert
    Join Date
    Jun 2005
    Posts
    923

    Re: GPRS connection closing problem

    Hi,

    Nothing wrong with your code. If you think the connection is not closed because of the little "G" on the top left corner, think again. Even when you close your connection, the "G" is gonna be there for a while (a few seconds in S40 and until your midlet is closed in S60), but that means the GPRS subsystem is already open, so if you create another connection, it would not have to be started again, which would take time. Your connection is indeed closed, if you try write/read something to/from it, you'll see that thru the eyes of an IOException

    Daniel
    rawsocket.org

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    44

    Re: GPRS connection closing problem

    Thanks you very much for this expalnation

  4. #4
    Registered User
    Join Date
    Feb 2006
    Posts
    2

    Re: GPRS connection closing problem

    Is there a way to force close this message in series60 anyways?

Similar Threads

  1. Problem MMC+USB Connection
    By Fede81 in forum Symbian
    Replies: 1
    Last Post: 2007-06-14, 06:13
  2. 7610 Http connection problem
    By nicole_yap in forum Mobile Java General
    Replies: 2
    Last Post: 2006-03-23, 07:06
  3. D211 & PPTP connection over GPRS
    By telesnap in forum Multimodecards
    Replies: 0
    Last Post: 2003-04-16, 14:45
  4. 7650/3650 Emulator and GPRS Connection problem
    By joller in forum Mobile Java General
    Replies: 1
    Last Post: 2003-04-11, 00:48
  5. http connection / gprs
    By DaneelGiskard in forum Mobile Java General
    Replies: 1
    Last Post: 2002-06-16, 08:30

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×