Responsive GUI on Android when using BLE

Delphi 10.3 Rio, Android 8

When I am using BLE in the code (subscribing, readind, writing...), my GUI is frozen for several seconds. I'd like to give immediate feedback to the user that an action is currently processed.

How can I make sure that the few lines of code (i.e. displaying a progress wheel) will be displayed right after the click event and before any BLE transaction?

Parents
No Data
Reply Children
No Data