×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Oct 2005
    Location
    Cairo,Egypt
    Posts
    72

    Red face a repeated question

    sorry for asking repeated question in closing the connection
    i have the code like
    try{
    ConnectionBasics.openConnection();/*open the connection and the inputstream and the output stream*/
    /*some processing*/
    }
    catch(Exception Ex){
    /**/
    }
    finally{
    ConnectionBasics.closeConnection();
    }

    the closeConnection is
    public boolean closeConnection(){
    try {

    if ( in != null )/*in is the input stream*/
    in.close () ;
    if ( output != null )/*output is the output stream*/
    output.close () ;
    if ( connection != null )/*the connection*/
    connection.close () ;
    return true ;
    }
    catch ( Exception ioex ) {
    return false;
    }
    }
    after closing the connection the indication of the GPRS on the screan remain active untill closing the application i want to close the phone indication of the GPRS as the client may though that iam using it in the background

  2. #2
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,697

    Re: a repeated question

    hi,

    just curiosity (not tested that yet): are you prompted for selecting APN after closing connection in your code? or JAM/AMS takes apn previously choosen for previous request?

    regards,
    Peter

  3. #3
    Regular Contributor
    Join Date
    Oct 2005
    Location
    Cairo,Egypt
    Posts
    72

    Re: a repeated question

    Thanks for ur reply
    it take the previous selection automatic without prompt me

  4. #4
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,697

    Re: a repeated question

    hi,
    I've read S602nd specs and found nothing about that,
    Maybe it depends on device implementation which keeps resource available for midlets during entire aplication lifetime, not sure about that though - but test you've made seems to confirm that,
    regards,
    Peter

  5. #5
    Regular Contributor
    Join Date
    Oct 2005
    Location
    Cairo,Egypt
    Posts
    72

    Re: a repeated question

    thanks for ur effort......
    Wael Nabil
    Product Manager
    CITGlobal MOBiDIV
    Egypt.

Similar Threads

  1. a question about command and a question about s60
    By t4kesting in forum Mobile Java General
    Replies: 0
    Last Post: 2006-01-24, 08:21
  2. Replies: 2
    Last Post: 2004-01-08, 18:36
  3. Replies: 0
    Last Post: 2003-12-07, 16:06
  4. Sending data using iAcceptedSocket (Urgent question)
    By okegame in forum Bluetooth Technology
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

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