I’m currently learning Android development and trying to develop an Android app that controls hardware via Bluetooth. However, I’ve encountered some issues during the Bluetooth development phase of the app. Specifically, using Bluetooth in the app causes it to crash.
I suspect that this might be related to my configuration or the use of deprecated methods. To troubleshoot, I pulled the open-source BluetoothChat project from GitHub and ran it. The app runs without crashing, but Bluetooth still doesn’t work. I’m not sure if this is due to the virtual machine or some other reason.
I’ve searched on Google but haven’t found a solution to my problem. I would greatly appreciate any guidance you could provide.
Here are some details about my setup:
Platform: Android Studio
Architecture: Jetpack Compose
Language: Kotlin
Tips: I haven’t worked on any Bluetooth projects before, so my questions might be quite basic. Please bear with me. Any suggestions, learning documents, or development experiences would be highly appreciated.
Thank you in advance!
user24439466 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.