title: How to destroy an android activity after when I sending a post with a web service?
body: <p>I'm trying to submit a form using a web service done with <a href="https://glassfish.java.net/" rel="nofollow">GlassFish</a> in Java and save the data in a <a href="https://www.postgresql.org/" rel="nofollow">PostgreSQL</a> database. I am using AsyncTask to send data. The problem I have is that when I've finish sending the data I want to destroy the activity and return to the main page.</p>