Running code in main thread from another thread
NOTE: This answer has gotten so much attention, that I need to update it. Since the original answer was posted, the comment from @dzeikei has gotten almost as much attention as the original answer. So here are 2 possible solutions: 1. If your background thread has a reference to a Context object: Make sure that … Read more