B4X FEED problem with GUI update, bluetooth, asyncstreams

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: problem with GUI update, bluetooth, asyncstreams است. این موضوع تا کنون 45 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع problem with GUI update, bluetooth, asyncstreams
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
45
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
I have an activity with 3 progressbars and some radiobuttons. The progressbars should show a kind of signal strengths.
With a timer (10 ms) I create test signals, the displays work and the activity is operable (radiobuttons react ...).

Now I use a real transmission of data with bluetooth and AsyncStreams instead of the timer.
The data rate is about 20 data strings per second. The transmission works but after a few seconds
the activity does not react anymore.

Instead of updating the display/GUI directly with the result of AsyncStreams I have also used a
timer that fetches the data from AsyncStreams and then updates the GUI. Result see above.

sleep(0) at different places doesn't show any improvement.

What is the best way to decouple or synchronize such a transfer and the GUI of an activity.

 

عقب
بالا