I have a problem. 1. I have two threads 'worker' and 'UI' thread. 2. worker keep on waiting for data from server, when gets it notifies to UI thread. 3. On update UI Toast a msg on screen. Step 3 is problem as it says
android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
using mHandler, runOnUIThread slows down the UI thread (UI displays webview), as I have to continuously check for data from server.
Thanks in advance.