T TomKluz Active Member Licensed User Longtime User Sep 27, 2024 #1 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 ?
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 ?
Erel B4X founder Staff member Licensed User Longtime User Sep 29, 2024 #2 It is unlikely to be related to changes in Android 14. First thing is make sure to test it in release mode. Upvote 0
It is unlikely to be related to changes in Android 14. First thing is make sure to test it in release mode.
T TomKluz Active Member Licensed User Longtime User Sep 30, 2024 #3 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
Thank you very much for taking care of this post. Unfortunately this is the case when the app is already in the release mode.
zed Well-Known Member Licensed User Sep 30, 2024 #4 Try on different devices. See if the problem is the same. Upvote 0
T TomKluz Active Member Licensed User Longtime User Sep 30, 2024 #5 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: Sep 30, 2024 Upvote 0
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.
roddy Member Licensed User Longtime User Oct 9, 2024 #6 TomKluz said: 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 ? Click to expand... I have the same problem and haven't solved it yet. Upvote 0
TomKluz said: 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 ? Click to expand... I have the same problem and haven't solved it yet.
f0raster0 Well-Known Member Licensed User Longtime User Oct 9, 2024 #7 roddy said: I have the same problem and haven't solved it yet. Click to expand... simple post your example showing the problem, I can test it in Android 10, 11, 13 and 14 Upvote 0
roddy said: I have the same problem and haven't solved it yet. Click to expand... simple post your example showing the problem, I can test it in Android 10, 11, 13 and 14
T TomKluz Active Member Licensed User Longtime User Oct 9, 2024 #8 roddy said: I have the same problem and haven't solved it yet. Click to expand... 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 said: I have the same problem and haven't solved it yet. Click to expand... 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 ?
roddy Member Licensed User Longtime User Oct 10, 2024 #9 TomKluz said: 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 ? Click to expand... Mobile printer: Samsung SPP-R200 and Zebra MZ220 use Bluetooth Classic The simple program code is as follows: Code: Copy 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 said: 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 ? Click to expand... Mobile printer: Samsung SPP-R200 and Zebra MZ220 use Bluetooth Classic The simple program code is as follows: Code: Copy 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
agraham Expert Licensed User Longtime User Oct 10, 2024 #10 I assume you are doing this repetitively, in which case why are you disconnecting Serial1? It will just waste time reconnecting every time. Upvote 0
I assume you are doing this repetitively, in which case why are you disconnecting Serial1? It will just waste time reconnecting every time.
T TomKluz Active Member Licensed User Longtime User Oct 10, 2024 #11 roddy said: Mobile printer: Samsung SPP-R200 and Zebra MZ220 use Bluetooth Classic Click to expand... 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. agraham said: I assume you are doing this repetitively, in which case why are you disconnecting Serial1? It will just waste time reconnecting every time. Click to expand... 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 B4A_Chat.zip 9.2 KB · Views: 334 Upvote 0
roddy said: Mobile printer: Samsung SPP-R200 and Zebra MZ220 use Bluetooth Classic Click to expand... 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. agraham said: I assume you are doing this repetitively, in which case why are you disconnecting Serial1? It will just waste time reconnecting every time. Click to expand... 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 ?
roddy Member Licensed User Longtime User Oct 11, 2024 #12 TomKluz said: 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. Click to expand... This is why I joined the discussion The speed of the same application in Android 13 and Android 14 is obviously different. Upvote 0
TomKluz said: 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. Click to expand... This is why I joined the discussion The speed of the same application in Android 13 and Android 14 is obviously different.
T TomKluz Active Member Licensed User Longtime User Oct 11, 2024 #13 roddy said: The speed of the same application in Android 13 and Android 14 is obviously different. Click to expand... I don't know why bluetooth speed is different in A13 and A14 and how to increse it. Upvote 0
roddy said: The speed of the same application in Android 13 and Android 14 is obviously different. Click to expand... I don't know why bluetooth speed is different in A13 and A14 and how to increse it.