I have a static Handler in my MainAcitivty. I have "handleMessage" as well but am not able to access Objects like TextView which belong to MainActivity. Is WeakReference the way to go here in order to access these objects from within the handleMessage method?
edit: I need a static handler because that is the handler which is used by another thread to receive messages from that thread. So in other words: MainActivity shall display information it got from another thread.