Created
May 2, 2013 21:17
-
-
Save chris-piekarski/5505537 to your computer and use it in GitHub Desktop.
Android Views & CalledFromWrongThreadException
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#CalledFromWrongThreadException | |
#Views can only be executed on by the thread that created them. If your in a different thread you have to use | |
#the runOnUiThread method. | |
runOnUiThread(new Runnable() { | |
public void run() { | |
//stuff that updates ui | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment