목록가속도 (2)
투케이2K
[설 명] 프로그램 : Android / Java 설 명 : 블루투스 , 위치 권한 , 네트워크 연결 상태 , NFC , 가속도 센서 활성 상태 확인 [소스 코드] package com.example.testapp; import static android.content.Context.KEYGUARD_SERVICE; import android.Manifest; import android.app.KeyguardManager; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.content.Context; import android.content.pm.PackageManage..

/* =========================== */ [ 개발 환경 설정 ] 개발 툴 : AndroidStudio 개발 언어 : java /* =========================== */ /* =========================== */ [소스 코드] /** ========== [구현 부분 설명 실시] ========== */ /** * 1. class 클래스에서 SensorEventListener 를 implements 상속 받습니다 * 2. onResume 에서 디바이스가 가속도 센서를 지원하는지 확인합니다 * 3. onResume 에서 가속도 센서를 지원하는 경우 리시버를 등록합니다 * 3. oncreate 액티비티 시작 상태에서 기능 동작을 실시합니다 * 4. ..