I am new in Andorid. I want to change the textView in UI. But it will appear the error when sub thread call append. It can be solved by handle and message. But I do not know the mechanism of handle and message in Android. So I ask for others’ help to explain it. thank you very much!
Asked
Active
Viewed 318 times
1 Answers
0
Why not use LocalBroadcastManager?
It is a lot simpler! Although you have to import the android-support.jar(install Compatibility Library from Android Tools.) and instance the localbroadcastmanager in both threads, I find it a lot easier to read the code afterwards!
Here is an example on StackOverflow (this should be enough for you to get started).
Don't forget to vote up or mark as correct!