Hi
I am trying to add a broadcast receiver to my program. In my manifest
file I have set up the receiver correctly (I think) in my manifest
file like this:
<receiver android:name=".BluetoothReceiver" android:enabled="true">
<intent-filter>
<action
android:name="android.bluetooth.device.action.DISCOVERY_STARTED"></
action>
</intent-filter>
</receiver>
I have setup my class 'BluetoothReceiver' which should print a message
to the debug screen:
public class BluetoothReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
System.out.println("Discovery has started");
}
}
However it never reaches this point. Yes bluetooth is enabled and
setup correctly. Yes I am calling startDiscovery() to start the search
process. What am I missing here??
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en