I am getting user information from a database using asynctask because you cannot do that in its a front task... when the task is completed i want to get back to the point where i called this Asynctask is there any way of doing this ?
my goal is to start another activity when the asynctask is completed
package com.example.eightmiles;
 import android.app.AlertDialog;  
 import android.content.Context;  
 import android.os.AsyncTask;
import android.print.PrintAttributes;
import android.widget.Toast;  
 import java.io.BufferedReader;  
 import java.io.BufferedWriter;  
 import java.io.IOException;  
 import java.io.InputStream;  
 import java.io.InputStreamReader;  
 import java.io.OutputStream;  
 import java.io.OutputStreamWriter;  
 import java.net.HttpURLConnection;  
 import java.net.MalformedURLException;  
 import java.net.URL;  
 import java.net.URLEncoder;
import java.util.StringTokenizer;  
 public class Backgroundtask extends AsyncTask<String, Void, String> {  
  AlertDialog alertDialog;  
  AlertDialog alertDialog2;  
   Context ctx;  
   Signin signin;
   Userlocalstore userlocalstore;
   String res_name , res_username , res_dob , res_email , res_id , res_pass;
   Backgroundtask(Context ctx)  
   {  
    this.ctx =ctx;  
   }  
   @Override  
   protected void onPreExecute() {  
   alertDialog = new AlertDialog.Builder(ctx).create();  
     alertDialog.setTitle("Login Information....");  
     alertDialog2 = new AlertDialog.Builder(ctx).create();  
     alertDialog2.setTitle("Apologies");  
   }  
   @Override  
   protected String doInBackground(String... params) {  
     String reg_url = "http://8miles.freeiz.com/Register.php";  
     String login_url = "http://8miles.freeiz.com/getuserinfo.php";  
     String method = params[0];  
     if (method.equals("Register")) {  
       String name = params[1];  
       String user_name = params[2];  
       String user_pass = params[3];  
       String email = params[4];  
       String dob = params[5];  
 
     
     
     
    