Code example for ArrayAdapter

Methods: addgetCount

0
                } 
            // When discovery is finished, change the Activity title 
            } else if (BluetoothAdapter.ACTION_DISCOVERY_FINISHED.equals(action)) { 
                setProgressBarIndeterminateVisibility(false); 
                setTitle("Select device"); 
                if (newDevicesArrayAdapter.getCount() == 0) { 
                    newDevicesArrayAdapter.add("None found"); 
                } 
            } 
        } 
    }; 
	 
}