Merge "Remove BluetoothDevice.ACTION_DISAPPEARED"
This commit is contained in:
@@ -106,20 +106,6 @@ public final class BluetoothDevice implements Parcelable {
|
|||||||
public static final String ACTION_FOUND =
|
public static final String ACTION_FOUND =
|
||||||
"android.bluetooth.device.action.FOUND";
|
"android.bluetooth.device.action.FOUND";
|
||||||
|
|
||||||
/**
|
|
||||||
* Broadcast Action: Remote device disappeared.
|
|
||||||
* <p>Sent when a remote device that was found in the last discovery is not
|
|
||||||
* found in the current discovery.
|
|
||||||
* <p>Always contains the extra field {@link #EXTRA_DEVICE}.
|
|
||||||
* <p>Requires {@link android.Manifest.permission#BLUETOOTH} to receive.
|
|
||||||
*
|
|
||||||
* @hide
|
|
||||||
*/
|
|
||||||
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
|
|
||||||
@UnsupportedAppUsage
|
|
||||||
public static final String ACTION_DISAPPEARED =
|
|
||||||
"android.bluetooth.device.action.DISAPPEARED";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Broadcast Action: Bluetooth class of a remote device has changed.
|
* Broadcast Action: Bluetooth class of a remote device has changed.
|
||||||
* <p>Always contains the extra fields {@link #EXTRA_DEVICE} and {@link
|
* <p>Always contains the extra fields {@link #EXTRA_DEVICE} and {@link
|
||||||
|
|||||||
@@ -138,7 +138,6 @@
|
|||||||
<protected-broadcast android:name="android.bluetooth.device.action.MAS_INSTANCE" />
|
<protected-broadcast android:name="android.bluetooth.device.action.MAS_INSTANCE" />
|
||||||
<protected-broadcast android:name="android.bluetooth.device.action.ALIAS_CHANGED" />
|
<protected-broadcast android:name="android.bluetooth.device.action.ALIAS_CHANGED" />
|
||||||
<protected-broadcast android:name="android.bluetooth.device.action.FOUND" />
|
<protected-broadcast android:name="android.bluetooth.device.action.FOUND" />
|
||||||
<protected-broadcast android:name="android.bluetooth.device.action.DISAPPEARED" />
|
|
||||||
<protected-broadcast android:name="android.bluetooth.device.action.CLASS_CHANGED" />
|
<protected-broadcast android:name="android.bluetooth.device.action.CLASS_CHANGED" />
|
||||||
<protected-broadcast android:name="android.bluetooth.device.action.ACL_CONNECTED" />
|
<protected-broadcast android:name="android.bluetooth.device.action.ACL_CONNECTED" />
|
||||||
<protected-broadcast android:name="android.bluetooth.device.action.ACL_DISCONNECT_REQUESTED" />
|
<protected-broadcast android:name="android.bluetooth.device.action.ACL_DISCONNECT_REQUESTED" />
|
||||||
|
|||||||
@@ -184,7 +184,6 @@ public class DeviceDiscoveryService extends Service {
|
|||||||
if (shouldScan(mBluetoothFilters)) {
|
if (shouldScan(mBluetoothFilters)) {
|
||||||
final IntentFilter intentFilter = new IntentFilter();
|
final IntentFilter intentFilter = new IntentFilter();
|
||||||
intentFilter.addAction(BluetoothDevice.ACTION_FOUND);
|
intentFilter.addAction(BluetoothDevice.ACTION_FOUND);
|
||||||
intentFilter.addAction(BluetoothDevice.ACTION_DISAPPEARED);
|
|
||||||
|
|
||||||
mBluetoothBroadcastReceiver = new BluetoothBroadcastReceiver();
|
mBluetoothBroadcastReceiver = new BluetoothBroadcastReceiver();
|
||||||
registerReceiver(mBluetoothBroadcastReceiver, intentFilter);
|
registerReceiver(mBluetoothBroadcastReceiver, intentFilter);
|
||||||
|
|||||||
Reference in New Issue
Block a user