in your extended UiApplication constructor:
- create a screen
- create a ws thread passing a reference of your screen to it.
- push your screen
- start your thread
your thread should call a function when it gets the result, this function updates the screen fields. Take care about event lock
Blessed is the end user who expects nothing, for he/she will not be disappointed. (Franklin's Rule)