I am new to Android.
I have a UI thread, the user clicks "Login." Once they click login, a thread is created (Android's AsyncTask) that goes to the internet (HTTPPost) and validates the input. There is also a "Progress Bar." Now my question is, how do I go back to the Activity (UI thread?) so I can close and start a new activity.
One naive idea that I came up with was to make the AsyncTask class a subclass of the Activity. This way in the "onPostExecute" method, I can finish the Activity.
Is there a proper way to do this?