public void updateContents(){
  clear();
  String displayCategory=getDisplayCategory();
  Display[] displays=mDisplayManager.getDisplays(displayCategory);
  addAll(displays);
  Log.d(TAG,"There are currently " + displays.length + " displays connected.");
  for (  Display display : displays) {
    Log.d(TAG,"  " + display);
  }
}

public void updateContents ( ) { clear ( ) ; String displayCategory = getDisplayCategory ( ) ; Display [ ] displays = mDisplayManager . getDisplays ( displayCategory ) ; addAll ( displays ) ; Log . d ( TAG , "There are currently " + displays . length + " displays connected." ) ; for ( Display display : displays ) { Log . d ( TAG , "  " + display ) ; } }
update the contents of the display list adapter to show information about all current displays .
