I have made Android app (Android Studio) which uses Google speech recognition and synthesis. Input and output text moves over bluetooth classic.
Text is transfered to ESP32-based program and back. It needs wifi and bluetooth. As wifi and bluetooth are using the same antenna, it was needed to add HC-06 bluetooth module to ESP32 as software serial source.
On Android 8 all works very well.
But when I tried to install this app on Android13, the bluetooth pairs and connects but does not work.
At same time I found in Github a SerialBluetooth Terminal and installed it on Android 13 device. It works with my app and whole system
Then I copied all manifest permissions to my app and installed updated app to mobile but it is not still working. Pairs but if I try to connect the message is: Connection fails, socket might be closed.
Permissions are following:
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_REMOTE_MESSAGING" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_CONNECTED_DEVICE" />
<uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="35"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:maxSdkVersion="33"/>
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<uses-permission android:name="android.permission.BLUETOOTH_SCAN"
android:usesPermissionFlags="neverForLocation" />
<uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-feature android:name="android.hardware.bluetooth" android:required="true"/>
Any help?
Thank you for attention!
Text is transfered to ESP32-based program and back. It needs wifi and bluetooth. As wifi and bluetooth are using the same antenna, it was needed to add HC-06 bluetooth module to ESP32 as software serial source.
On Android 8 all works very well.
But when I tried to install this app on Android13, the bluetooth pairs and connects but does not work.
At same time I found in Github a SerialBluetooth Terminal and installed it on Android 13 device. It works with my app and whole system
Then I copied all manifest permissions to my app and installed updated app to mobile but it is not still working. Pairs but if I try to connect the message is: Connection fails, socket might be closed.
Permissions are following:
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_REMOTE_MESSAGING" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_CONNECTED_DEVICE" />
<uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="35"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:maxSdkVersion="33"/>
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<uses-permission android:name="android.permission.BLUETOOTH_SCAN"
android:usesPermissionFlags="neverForLocation" />
<uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-feature android:name="android.hardware.bluetooth" android:required="true"/>
Any help?
Thank you for attention!
