In my Application I have 3 Activities:
1. Login
2. AsyncTask
(different class)
3. Welcome
After receiving all the information in the Login Activity
it moves to the AsyncTask Activity
. When the the AsyncTask
is completed it moves to the Welcome Activity
. I want to close the Login Activity
as soon as the AsyncTask Activity
completes its job..
I am trying to use the following code in the onPostExecite()
of AsyncTask
:
Login.this.finish();
But I am getting an error of: No enclosing instance of the type of Login is accessible in scope
..
Please tell me how can i close my Login Activity
after completing my AsyncTask
..
Thanks in Advance...