|
| [wm21 - android] Control tempate & Thread not stable |
| Iniciado por guest, 21,oct. 2016 06:12 - 1 respuesta |
| |
| | | |
|
| |
| Publicado el 21,octubre 2016 - 06:12 |
Hi,
in order to improve speed , I modify my control template (looper) to use thread to retrieve data from webservice and fill the looper.
in test , if a window only contain more than 2 control template then the app keep crashing.
in 3 times test, 1 times will failed
after countless of try and error . I found the lessees crash method is to hide the looper and unhide after process finish . during that time I showing animated waiting image.
the bad part in this is , cannot select a row while process still running.
anyone has better solution for this? |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,octubre 2016 - 11:03 |
Hi
as you don't show us your code, I'm going to suppose that you are doing the same thing than all thread beginners, ie doing direct access to the UI from your threads... That is forbidden (and written in the help)...
To do that, you need to use a special function in your thread (ExecuteMainThread) that will call a function from the main thread in charge of the UI
Best regards |
| |
| |
| | | |
|
| | | | |
| | |
|