-2
final BroadcastReceiver ActionFoundReceiver1 = new BroadcastReceiver(){
@Override
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if(BluetoothDevice.ACTION_FOUND.equals(action)) {
BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
out = (TextView) findViewById (R.id.deviceName);
out.setText(device.getName());
btDeviceList.add(device);
}
}
}
什麼是你的問題? – Constantin
當我打開應用程序,它掃描,但它不顯示任何東西在我的文字瀏覽。 – Cindy2011
@ Cindy2011,請編輯您的原始問題並提供必要的信息。 –