// Use this check to determine whether BLE is supported on the device. Then
// you can selectively disable BLE-related features.
if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {
Toast.makeText(this, R.string.ble_not_supported, Toast.LENGTH_SHORT).show();
finish();
}
'Android' 카테고리의 다른 글
[Android] Activity "생명주기" 관련 테스트 (0) | 2016.05.14 |
---|---|
웹에서 안드로이드 엑티비티 실행.. (0) | 2016.05.02 |
AlertDialog (0) | 2016.04.02 |
자바스크립트 alert 이 동작하지 않을때. (0) | 2016.03.22 |
회전시 웹뷰 새로고침 막기. (0) | 2016.03.22 |