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



Reply With Quote

