Sometimes i get this crash error in my app
java.lang.RuntimeException: An error occured while executing doInBackground()
This is the full l
You can't do any GUI work on a background thread. Instead you should post a Runnable to a handler created in the GUI thread to make your Toast execute on the correct thread.
EDIT: Since the homework tag was removed, I'll give an outline how to do it;
For a complete example, see this article.