본문 바로가기

이것저것 다 개발

검색하기
이것저것 다 개발
프로필사진 용용개발

  • All (39)
    • Android (23)
    • React (4)
    • Java (4)
    • Linux (2)
    • Hadoop&HBase (1)
    • Git (2)
    • JavaScript (2)
    • etc (1)
    • 독서 (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록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
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바