안녕하세요!
안드로이드 스튜디오로 블루투스 검색을 하고있는 중입니다.
브로드캐스트 action_found가 리시브 되지 않는데 대체 뭐가 문제인지 모르겠습니다.
IntentFilter filter1 = new IntentFilter();
filter1.addAction(BluetoothDevice.ACTION_FOUND);
filter1.addAction(BluetoothDevice.ACTION_CLASS_CHANGED);
filter1.addAction(BluetoothAdapter.ACTION_DISCOVERY_STARTED);
filter1.addAction(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);
registerReceiver(mBroadcastReceiver1, filter1);
이렇게 filter 등록하고
private final BroadcastReceiver mBroadcastReceiver1 = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
final String action = intent.getAction();
Log.e(TAG, "onReceive: ACTION____________come in Receiver1");
if(BluetoothAdapter.ACTION_DISCOVERY_STARTED.equals(intent.getAction())) {
Log.e("현재 Action?::", action);
}
else if(BluetoothAdapter.ACTION_DISCOVERY_FINISHED.equals(intent.getAction())) {
Log.e("현재 Action?::", action);
}
else if (BluetoothDevice.ACTION_CLASS_CHANGED.equals(intent.getAction())) {
Log.e("현재 Action?::", action);
}
else if (BluetoothDevice.ACTION_FOUND.equals(intent.getAction())) {
Log.e("현재 Action?::", action);
}
}
};
이렇게 브로드캐스트리시버를 사용해서 로그에러를 찍었는데

ㅇ
ㅇ
나머지것들은 다 에러로그가 찍히는데 action_found만 찍히지 않아요

이걸 보면 또 안잡히는건 아닌것같은데 대체 왜 그럴까요...??