I am trying to make an android game.
I have a game class that extends activity and handles all the user input. Then I have a missionView class that extends view and
I've faced with the same problem in my application.
In my case I was trying to call invalidate() from the [doInBackground()][1] method of the [AsyncTask][2].
The problem was solved by moving invalidate() to [onProgressUpdate()][3] method of AsyncTask. I.e. you cannot update UI from the doInBackground() method of AsyncTask. It is mentioned in Android docs, but it is so easy to forget about it... so, don't forget to check it.