Hello,

I'm trying to develop an app that knows the right moment the Bluetooth
Headset (or any other Bluetooth Device) is connected to the Phone. How
can I do it?

I already tried with BroadcastReceiver
(android.bluetooth.intent.action.HEADSET_STATE_CHANGED) defined in my
manifest but with no results...

<receiver android:name=".BluetoothReceiver"
      android:enabled="true">
      <intent-filter>
            <action
 
android:name="android.bluetooth.intent.action.HEADSET_STATE_CHANGED" /
>
      </intent-filter>
</receiver>


 public class BluetoothReceiver extends BroadcastReceiver {

           @Override
             public void onReceive(Context context, Intent intent) {
                        // Do stuff……
              }
}


What's wrong?

I want to use 1.6 sdk.

Thanks in advance for your help.

Greetings

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to