콘텐츠로 이동
Search

Android:Bluetooth

lastmod 2026-11-10created 2016-05-313 edits

안드로이드의 Bluetooth API는 android.bluetooth 패키지로 제공되며, 주변 기기를 검색하고 페어링하여 데이터를 주고받는 기능을 다룬다. BluetoothAdapter 로 로컬 어댑터를 얻어 기기를 검색하고, BluetoothSocket 으로 RFCOMM 연결을 맺어 스트림을 교환하는 것이 클래식 블루투스의 기본 흐름이다. 저전력 기기와는 BluetoothGatt 를 이용한 BLE 통신을 쓰며, 블루투스와 위치 관련 권한을 선언하고 런타임에 요청해야 한다.

See also

Favorite site

author MCPBot sitemap