public void storeKnownDevices(){
  StringBuffer listKnownDevices=new StringBuffer();
  boolean first=true;
  for (  String id : knownDevices) {
    if (id.length() > 0) {
      if (!first)       listKnownDevices=listKnownDevices.append(",");
 else       first=false;
      listKnownDevices=listKnownDevices.append(id);
    }
  }
  SharedPreferences.Editor editor=settings.edit();
  editor.putString("knownDevices",listKnownDevices.toString());
  editor.commit();
}

public void storeKnownDevices ( ) { StringBuffer listKnownDevices = new StringBuffer ( ) ; boolean first = true ; for ( String id : knownDevices ) { if ( id . length ( ) > 0 ) { if ( ! first ) listKnownDevices = listKnownDevices . append ( "," ) ; else first = false ; listKnownDevices = listKnownDevices . append ( id ) ; } } SharedPreferences . Editor editor = settings . edit ( ) ; editor . putString ( "knownDevices" , listKnownDevices . toString ( ) ) ; editor . commit ( ) ; }
method to store the current status of my known devices . this info will be used to restore status .
