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 (mNewDevicesArrayAdapter.getCount() == 0) { 
					String noDevices = "No devices"; 
					mNewDevicesArrayAdapter.add(noDevices); 
				} 
			} 
		} 
	}; 
 
}