Code example for BluetoothAdapter

Methods: disable

0
				Log.v(SSC,"Bluetooth discovering..."); 
				BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); 
				bluetoothNeighbors.add(device.getName() + ";" + device.getAddress()); 
			} else if(BluetoothAdapter.ACTION_DISCOVERY_FINISHED.equals(action)) { 
				Log.v(SSC,"Bluetooth discovery finished."); 
				ba.disable(); 
			} else if(BluetoothAdapter.ACTION_DISCOVERY_STARTED.equals(action)) { 
				Log.v(SSC,"Bluetooth discovery starting..."); 
				bluetoothNeighbors.clear(); 
			} 
		} 
    }; 
     
    private final SensorEventListener sl = new SensorEventListener() {
		 
		public void onSensorChanged(SensorEvent event) { 
			sensorValues = event.values;			 
		} 
				 
		public void onAccuracyChanged(Sensor sensor, int accuracy) {} 
    };