android.bluetooth
Class BluetoothDevice

java.lang.Object
  extended by android.bluetooth.BluetoothDevice
All Implemented Interfaces:
Parcelable

public final class BluetoothDevice
extends Object
implements Parcelable


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
static String ACTION_ACL_CONNECTED
           
static String ACTION_ACL_DISCONNECT_REQUESTED
           
static String ACTION_ACL_DISCONNECTED
           
static String ACTION_BOND_STATE_CHANGED
           
static String ACTION_CLASS_CHANGED
           
static String ACTION_FOUND
           
static String ACTION_NAME_CHANGED
           
static int BOND_BONDED
           
static int BOND_BONDING
           
static int BOND_NONE
           
static Parcelable.Creator<BluetoothDevice> CREATOR
           
static int ERROR
           
static String EXTRA_BOND_STATE
           
static String EXTRA_CLASS
           
static String EXTRA_DEVICE
           
static String EXTRA_NAME
           
static String EXTRA_PREVIOUS_BOND_STATE
           
static String EXTRA_RSSI
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Method Summary
 BluetoothSocket createInsecureRfcommSocketToServiceRecord(UUID uuid)
           
 BluetoothSocket createRfcommSocketToServiceRecord(UUID uuid)
           
 int describeContents()
           
 boolean equals(Object o)
           
 String getAddress()
           
 BluetoothClass getBluetoothClass()
           
 int getBondState()
           
 String getName()
           
 int hashCode()
           
 String toString()
           
 void writeToParcel(Parcel out, int flags)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR

public static final int ERROR
See Also:
Constant Field Values

ACTION_FOUND

public static final String ACTION_FOUND
See Also:
Constant Field Values

ACTION_CLASS_CHANGED

public static final String ACTION_CLASS_CHANGED
See Also:
Constant Field Values

ACTION_ACL_CONNECTED

public static final String ACTION_ACL_CONNECTED
See Also:
Constant Field Values

ACTION_ACL_DISCONNECT_REQUESTED

public static final String ACTION_ACL_DISCONNECT_REQUESTED
See Also:
Constant Field Values

ACTION_ACL_DISCONNECTED

public static final String ACTION_ACL_DISCONNECTED
See Also:
Constant Field Values

ACTION_NAME_CHANGED

public static final String ACTION_NAME_CHANGED
See Also:
Constant Field Values

ACTION_BOND_STATE_CHANGED

public static final String ACTION_BOND_STATE_CHANGED
See Also:
Constant Field Values

EXTRA_DEVICE

public static final String EXTRA_DEVICE
See Also:
Constant Field Values

EXTRA_NAME

public static final String EXTRA_NAME
See Also:
Constant Field Values

EXTRA_RSSI

public static final String EXTRA_RSSI
See Also:
Constant Field Values

EXTRA_CLASS

public static final String EXTRA_CLASS
See Also:
Constant Field Values

EXTRA_BOND_STATE

public static final String EXTRA_BOND_STATE
See Also:
Constant Field Values

EXTRA_PREVIOUS_BOND_STATE

public static final String EXTRA_PREVIOUS_BOND_STATE
See Also:
Constant Field Values

BOND_NONE

public static final int BOND_NONE
See Also:
Constant Field Values

BOND_BONDING

public static final int BOND_BONDING
See Also:
Constant Field Values

BOND_BONDED

public static final int BOND_BONDED
See Also:
Constant Field Values

CREATOR

public static final Parcelable.Creator<BluetoothDevice> CREATOR
Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

describeContents

public int describeContents()
Specified by:
describeContents in interface Parcelable

writeToParcel

public void writeToParcel(Parcel out,
                          int flags)
Specified by:
writeToParcel in interface Parcelable

getAddress

public String getAddress()

getName

public String getName()

getBondState

public int getBondState()

getBluetoothClass

public BluetoothClass getBluetoothClass()

createRfcommSocketToServiceRecord

public BluetoothSocket createRfcommSocketToServiceRecord(UUID uuid)
                                                  throws IOException
Throws:
IOException

createInsecureRfcommSocketToServiceRecord

public BluetoothSocket createInsecureRfcommSocketToServiceRecord(UUID uuid)
                                                          throws IOException
Throws:
IOException


Copyright © 2008-2012. All Rights Reserved.