나는 음성을 사용하여 블루투스를 켤 수있는 응용 프로그램을 작성했습니다 (의도를 호출하고 Action.request.enable 메소드 사용). 그 잘 작동 ..응용 프로그램에서 블루투스 끄기
지금 나는 블루투스를 끄고 싶다. 나는 bluetoothadapter.disable()을 사용하여 시도했지만 전체 응용 프로그램이 충돌합니다. 제발 도와주세요 ..이 :: 더 도움을
Intent discoverableIntent = new
Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);
discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 1);
startActivity(discoverableIntent);
비활성화
이 시도 this
당신이 당신의 로그 캣를 붙여 주시기 바랍니다 수 있습니다. 그래서 우리는 실제 문제를 분석하고 알려줄 수 있습니다. –
당신이 원하는 것일 수도 있습니다 http://stackoverflow.com/questions/3806536/how-to-enable-disable-bluetooth-programmatically-in-android –
당신의 매니 페스트 파일에이 권한을 추가 했습니까? android.permission.BLUETOOTH_ADMIN "> uses-permission> – Pratik