Android Bluetooth Low Energy Guide (Connect to a BLE sensor) - Android Studio Tutorial with Kotlin
K Apps
36,984 lượt xem 2 years ago In this tutorial I will show you how you can connect to a BLE sensor/device from your Android Applikation using Android Studio and Kotlin. We will build a simple UI which refreshes every second to update the values retrieved from a BLE sensor. You will also see how to properly handle all necessary permissions and check for the Bluetooth state during runtime.
00:00 Introduction
01:51 Dependencies
2:42 Navigation and first screen
22:20 BLE Service
1:04:58 Viewmodel for state management
1:13:32 Final screen for updating BLE values
Initial project:
https://github.com/MatthiasKerat/BLETutorialYt/tree/main
Final project:
https://github.com/MatthiasKerat/BLETutorialYt/tree/FinalApp