Android - Issue With Async Tasks
I have a Recycler View that displays information, downloaded from a server. I want it to be responsive while doing all this, so I wrote it using async/await operations and Tasks. T
Solution 1:
You have to design your UI to be asynchronous.
That is, when your UI loads, it should (synchronously) load into a valid, expected state of having no data. It also starts the download(s) at that time. When the download(s) complete, you have to update the UI to show the new data. I have a series of MSDN articles on async MVVM applications that you may find helpful.
Also, avoid async void
. I have another MSDN article on async best practices that goes into more detail.
Post a Comment for "Android - Issue With Async Tasks"