Hi,

  I got this exception (CallFromWrongThread) raised from ViewRoot when
executing the android emulator.
  What I'm doing is that I'm accessing a ViewText this way:

  String s = "something interesting";
  TextView msgTextView = (TextView) findViewById(R.id.label);
  msgTextView.setText(s);   // the exception is raised here

  This code is in the 'run' function of a Thread object called in the
onCreate main function.
  I can't find any documentation on this exception and even though the
name is quite explicit, I don't get how a thread can be wrong when
accessing a View object.

  Thanks for your help.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to