Bluetooth app slowdown

Tom Neal

New Member
Licensed User
Longtime User
I am new Basic4android. I was doing some quick testing with the Serial example application for Bluetooth. In a simple test, I connected to a Bluetooth deveice being feed once a second with data from a GPS receiver. The data starts to come across correctly but after a number of minutes [5] and after maybe 50,000 bytes of data are transferred. The Android application starts to really slow down and it does not appear that the edittext box is being updated correctly.

Any ideas?

Tom
 

KitCarlson

Active Member
Licensed User
Longtime User
Not sure if this will help. A label may work better for display than edittext.
 
Last edited:
Upvote 0

mc73

Well-Known Member
Licensed User
Longtime User
No sure if this will help. A label may work better for display than edittext.
Or a listview. It should hold many lines with no problem. Still, why would you want that quantity of data in a view, instead of writing it to a file or db, and holding just a number of the most recent data in our view?
 
Upvote 0

Tom Neal

New Member
Licensed User
Longtime User
Agreed in practice I would not need to buffer all the data and indeed the buffering and displaying/positioning may have caused the slowdown. It was a simple test but I was surprised by the amount of slowdown.

Tom
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…