I am trying to make an application that can simulate a fight of two characters and I need to update some TextViews of their hp as it goes down. This is currently happening while two threads are running. Their hp is a global variable and since views can only be modified in the main thread, I have a while loop running while the threads are going that keeps updating the textviews. In Logcat, you can see the while loop running and the hp going down. However, the textviews are not updated until after the threads are finished.
I've tried using runnables and asynch task to update the textviews. None of these methods work. Why is this happening?