Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor Spider_Eg's Avatar
    Join Date
    Oct 2005
    Location
    Cairo,Egypt
    Posts
    72
    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 peterblazejewicz's Avatar
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,699
    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 Spider_Eg's Avatar
    Join Date
    Oct 2005
    Location
    Cairo,Egypt
    Posts
    72
    Thanks for ur reply
    it take the previous selection automatic without prompt me

  4. #4
    Super Contributor peterblazejewicz's Avatar
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,699
    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 Spider_Eg's Avatar
    Join Date
    Oct 2005
    Location
    Cairo,Egypt
    Posts
    72
    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. Strange question on 6230
    By DanAvni1 in forum Mobile Web Site Development
    Replies: 1
    Last Post: 2005-04-18, 06:05
  3. Replies: 2
    Last Post: 2004-01-08, 18:36
  4. Replies: 0
    Last Post: 2003-12-07, 16:06
  5. 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
  •  
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