Android Question Android 14 - Bluetooth slow

TomKluz

Active Member
Licensed User
Hi.
I am struggling with adapting my app to Android 14. After adding Bluetooth permissions everything starts work but not entirely.
Bluetooth transmission became slow. It is not possible to observe values change in real time. They are excessively postponed.
I am using Bluetooth Clasic (2).
Under older version (Android 10) everything is going smoothly.
Does anyone have any experience on this topic ?
 

TomKluz

Active Member
Licensed User
Thank you very much for taking care of this post.
Unfortunately this is the case when the app is already in the release mode.
 
Upvote 0

TomKluz

Active Member
Licensed User
Already tested on Motorola G 04 (my own) and Samsung Galaxy A14 (my friend). Result the same.
(It is not easy for me to find a device to test my app)
Maybe BLE Bluetooth modules are quicker then Bluetooth Clasic ? I have no experience with BLE 4 or 5.
 
Last edited:
Upvote 0

roddy

Member
Licensed User
Longtime User
I have the same problem and haven't solved it yet.
 
Upvote 0

TomKluz

Active Member
Licensed User
I have the same problem and haven't solved it yet.
My app is communicating with external inclinometer witch sends data with frequency of 10 Hz . Till Android 13 it was possible to see all value changes smoothly.
May I ask you questions:
What kind of device you are connected with ?
Do you use Bluetooth Classic or BLE ?
 
Upvote 0

roddy

Member
Licensed User
Longtime User
Mobile printer: Samsung SPP-R200 and Zebra MZ220
use Bluetooth Classic

The simple program code is as follows:
printer:
Dim Serial1 As Serial
Dim txw As TextWriter
Serial1.Connect("01:02:03:04:05:06")
txw.Initialize2(Main.Serial1.OutputStream,"BIG5")
str1 = "abc..."
txw.WriteLine(str1)
txw.Flush
Serial1.Disconnect
 
Upvote 0

TomKluz

Active Member
Licensed User
Mobile printer: Samsung SPP-R200 and Zebra MZ220
use Bluetooth Classic
OK. You are using Bluetooth to send data . In my case is a problem mainly with receiving data.
Regarding a software, I have started from old Erel's chat example published on this forum. I can't find it recently so I have attached zip.
The problem with speed is larger when more devices are connected. In my case is 2 and I want to observe results simultaneously.
All of this staff works ok under Android 10. With Android 14 finally (after adding permissions) starts work but slowly. This feature makes all idea useless.

I assume you are doing this repetitively, in which case why are you disconnecting Serial1? It will just waste time reconnecting every time.
Thank you for joining. This is a precious comment but I woud like to lern why the same app (even not fully optimized) is significantly slower under Android 14.
I'm hoping that someone has meet this issue and can point if solution depends of software or(and) maybe even hardware.
Should I try BLE? Is it faster in case of new Android ?
 

Attachments

  • B4A_Chat.zip
    9.2 KB · Views: 24
Upvote 0

roddy

Member
Licensed User
Longtime User
This is a precious comment but I woud like to lern why the same app (even not fully optimized) is significantly slower under Android 14.
This is why I joined the discussion

The speed of the same application in Android 13 and Android 14 is obviously different.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…