Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Android Views & CalledFromWrongThreadException
#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