Tag: asynctask
-
Updating frequently a TextView inside a loop
The problem How to update a TextView inside a loop or, more generally, how to update frequently an UI element of an Activity.
-
The android.os.NetworkOnMainThreadException exception
In this article I explain a possible cause of android.os.NetworkOnMainThreadException and how to avoid it. From the Android site you can read: NetworkOnMainThreadException The exception that is thrown when an application attempts to perform a networking operation on its main thread. This is only thrown for applications targeting the Honeycomb SDK or higher…