Android Question problem with connecting to HC-05 in android 10

hi,
I have a problem with HC 05 in android 10.
first of all I sat up the board like the one in the tutorial ( this tutorial ) and installed Bluetooth Terminal HC-05 to test whether it's working fine or not.
as you see in the picture by sending a character like "A" the green light turns on and by sending "B" it turns off.

1.jpg
2.jpg


Then I removed Bluetooth Terminal HC-05 and installed this tutorial's APK on my phone ( Samsung Galaxy A7 2018 with android 10) and lunched it. Unfortunately it doesn't connect. It just searches for the module but cant fund.
all of the permissions are granted.
by the way, when I downgrade my android to 9 it works without any problems
tested on: galaxy a7 and a9 2018 , xiaomi redmi note 8 , note 8 pro and note pro

any solotions?

3.jpg


Manifest:
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="29"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.DarkTheme)

AddPermission(android.permission.ACCESS_COARSE_LOCATION)
AddPermission(android.permission.ACCESS_FINE_LOCATION)
AddPermission(android.permission.ACCESS_BACKGROUND_LOCATION)
AddPermission(android.permission.BLUETOOTH)
AddPermission(android.permission.BLUETOOTH_ADMIN)

AddReceiverText(Starter,<intent-filter>
<action android:name="android.bluetooth.device.action.FOUND" />
</intent-filter>)
'End of default text.
 

thanks Erel,
I have read all of the posts about hc 05 on the forum and done all of the solutions but the problem still remains.
I repeat, every thing works fine from api 14 to 28, android 10 is the problem. when I downgrade my Galaxy A7 to android 9 it works fine, but in android 10 it does not connect.
here is a picture of the log when target SDK sat to 28 on my galaxy running android 10.

4.png
 
Upvote 0
Top