private void persistServerURI(String serverURI){
  File fileDir=newConnection.getFilesDir();
  File presited=new File(fileDir,"hosts.txt");
  BufferedWriter bfw=null;
  try {
    bfw=new BufferedWriter(new FileWriter(presited));
    bfw.write(serverURI);
    bfw.newLine();
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
 finally {
    try {
      if (bfw != null) {
        bfw.close();
      }
    }
 catch (    IOException e) {
      e.printStackTrace();
    }
  }
}

private void persistServerURI ( String serverURI ) { File fileDir = newConnection . getFilesDir ( ) ; File presited = new File ( fileDir , "hosts.txt" ) ; BufferedWriter bfw = null ; try { bfw = new BufferedWriter ( new FileWriter ( presited ) ) ; bfw . write ( serverURI ) ; bfw . newLine ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } finally { try { if ( bfw != null ) { bfw . close ( ) ; } } catch ( IOException e ) { e . printStackTrace ( ) ; } } }
add a server uri to the persisted file
