Drew
Drew

Reputation: 13

Bluetooth device detection disconnected/connected alert in android(eclipse)

I am an student developing an android application that will need to access the Bluetooth connection/disconnection.

I am new to android but I'm studying hard to be more familiar in creating android application.

please can anyone help me how to check if Bluetooth device is connected or not?

and also i want to detect if device is suddenly disconnected.

Upvotes: 0

Views: 2054

Answers (1)

Nathaniel D. Waggoner
Nathaniel D. Waggoner

Reputation: 2886

Please see these docs:

http://developer.android.com/guide/topics/connectivity/bluetooth.html

Specifically you're looking for:

Querying Paired Devices

and

Discovering devices

Also see this question:

How to programmatically tell if a Bluetooth device is connected? (Android 2.2)

EDIT: Some tutorials for you:

http://developer.android.com/training/index.html

http://www.tutorialspoint.com/android/android_bluetooth.htm

Upvotes: 2

Related Questions