I have a comment activity that loads a Thread and sends some data to a server, the activity is immediately finished once the submit button is pressed. The user is then free to do other things in my application.
When the server response an AlertDialog is shown.
The problem is that since the initial Context has been destroyed, my application crashes. I tried getApplicationContext() but still get an exception.