android - Loading an Alert Box from a Thread when the activity has gone away -


I have a comment activity that loads a thread and sends some data to a server; After pressing the deposit button, the activity ends immediately.

Then the user makes other items free of charge in my application.

When someone replies to a alert card, then the answer to the server is the answer.

The problem is that since the initial reference has been deleted, my app crashes.

I tried getApplicationContext () but still get exception.

Put your network stuff in one, then show instead of a dialog.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -