android.bluetooth
Class BluetoothAdapter
java.lang.Object
android.bluetooth.BluetoothAdapter
public final class BluetoothAdapter
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERROR
public static final int ERROR
- See Also:
- Constant Field Values
ACTION_STATE_CHANGED
public static final String ACTION_STATE_CHANGED
- See Also:
- Constant Field Values
EXTRA_STATE
public static final String EXTRA_STATE
- See Also:
- Constant Field Values
EXTRA_PREVIOUS_STATE
public static final String EXTRA_PREVIOUS_STATE
- See Also:
- Constant Field Values
STATE_OFF
public static final int STATE_OFF
- See Also:
- Constant Field Values
STATE_TURNING_ON
public static final int STATE_TURNING_ON
- See Also:
- Constant Field Values
STATE_ON
public static final int STATE_ON
- See Also:
- Constant Field Values
STATE_TURNING_OFF
public static final int STATE_TURNING_OFF
- See Also:
- Constant Field Values
ACTION_REQUEST_DISCOVERABLE
public static final String ACTION_REQUEST_DISCOVERABLE
- See Also:
- Constant Field Values
EXTRA_DISCOVERABLE_DURATION
public static final String EXTRA_DISCOVERABLE_DURATION
- See Also:
- Constant Field Values
ACTION_REQUEST_ENABLE
public static final String ACTION_REQUEST_ENABLE
- See Also:
- Constant Field Values
ACTION_SCAN_MODE_CHANGED
public static final String ACTION_SCAN_MODE_CHANGED
- See Also:
- Constant Field Values
EXTRA_SCAN_MODE
public static final String EXTRA_SCAN_MODE
- See Also:
- Constant Field Values
EXTRA_PREVIOUS_SCAN_MODE
public static final String EXTRA_PREVIOUS_SCAN_MODE
- See Also:
- Constant Field Values
SCAN_MODE_NONE
public static final int SCAN_MODE_NONE
- See Also:
- Constant Field Values
SCAN_MODE_CONNECTABLE
public static final int SCAN_MODE_CONNECTABLE
- See Also:
- Constant Field Values
SCAN_MODE_CONNECTABLE_DISCOVERABLE
public static final int SCAN_MODE_CONNECTABLE_DISCOVERABLE
- See Also:
- Constant Field Values
ACTION_DISCOVERY_STARTED
public static final String ACTION_DISCOVERY_STARTED
- See Also:
- Constant Field Values
ACTION_DISCOVERY_FINISHED
public static final String ACTION_DISCOVERY_FINISHED
- See Also:
- Constant Field Values
ACTION_LOCAL_NAME_CHANGED
public static final String ACTION_LOCAL_NAME_CHANGED
- See Also:
- Constant Field Values
EXTRA_LOCAL_NAME
public static final String EXTRA_LOCAL_NAME
- See Also:
- Constant Field Values
getDefaultAdapter
public static BluetoothAdapter getDefaultAdapter()
getRemoteDevice
public BluetoothDevice getRemoteDevice(String address)
isEnabled
public boolean isEnabled()
getState
public int getState()
enable
public boolean enable()
disable
public boolean disable()
getAddress
public String getAddress()
getName
public String getName()
setName
public boolean setName(String name)
getScanMode
public int getScanMode()
startDiscovery
public boolean startDiscovery()
cancelDiscovery
public boolean cancelDiscovery()
isDiscovering
public boolean isDiscovering()
getBondedDevices
public Set<BluetoothDevice> getBondedDevices()
listenUsingRfcommWithServiceRecord
public BluetoothServerSocket listenUsingRfcommWithServiceRecord(String name,
UUID uuid)
throws IOException
- Throws:
IOException
checkBluetoothAddress
public static boolean checkBluetoothAddress(String address)
Copyright © 2008-2010. All Rights Reserved.