` MetaWearBoard board = mwBoard;
Can I Update UI in the connectAsync function? for instance, I want to let user know the connection status.
What do you mean by "in the connectAsync function"?
I mean I cannot set the textview content in its following "continueWithTask(task -> " part.
// tvConnectionStatus.setText("Sensor "+ iBoard+" is connected.");
Run UI functions on the UI thread.
Check the Android documentation or StackOverflow to Android specific questions.