Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- component
- .kt
- RecyclerView
- block scope
- linux
- react
- Eclipse
- permission
- layout
- RelativeLayout
- Retrofit2
- Anko SQLite
- http
- vim
- Anro Coroutines
- 안드로이드
- function scope
- LinearLayout
- ReactDOM
- intent
- ViewGroup
- cardview
- Kotlin
- view
- ConstraintLayout
- android
- java
- javascript
- Git
- props
Archives
- Today
- Total
목록BLUETOOTH (1)
이것저것 다 개발
[Android] Bluetooth Permission 설정 및 활성화
Bluetooth Permission 설정 및 활성화하는법 입니다.Bluetooth permission은 Normal Permission으로 Manifest에서만 설정해주면 됩니다. 먼저 AndroidManifest.xml에서 권한을 추가해줍니다. 다음으로 Activity에서 BluetoothAdapter 인스턴스를 생성해줍니다.mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter()Bluetooth를 지원하는 단말인지 체크하겠습니다.if (mBluetoothAdapter == null) { Toast.makeText(this, "블루투스 미지원 단말입니다.", Toast.LENGTH_SHORT).show() finish() return }Bluetooth를 ..
Android
2018. 4. 4. 18:19