When I tried to follow this tutorial, I found that in onPostExecute, the section
Button b = (Button)findViewById(R.id.my_button);
resulted in an exception:
"Only the original thread that created a view hierarchy can touch its views."
When I googled this error message, it seems to be a documented limitation, but perhaps that is only a recently introcuced one?
- Keyboard Shortcuts:
Keep Up with TechRepublic