how to navigate back to login page after successful register
<pre><code>  @Override
    public void onClick(View v) {
         if(v == buttonRegister){
            registerUser();
          }
     }
private void registerUser() {
    ?*some code here*/   
}
private void register(String name, String email, String password, String phone ) {
    String urlSuffix = "?name="+name+"&amp;email="+email+"&amp;password="+password+"&amp;phone="+phone;
    class RegisterUser extends AsyncTask&lt;String, Void, String&gt; {
        ProgressDialog loading;
        @Override
        protected void onPreExecute() {
            super.onPreExecute();
            loading = ProgressDialog.show(SignUpActivity.this, "Please Wait",null, true, true);
        }
        @Override
        protected void onPostExecute(String s) {
            super.onPostExecute(s);
            loading.dismiss();
            Toast.makeText(getApplicationContext(), s, Toast.LENGTH_SHORT).show();


        }

        @Override
        protected String doInBackground(String... params) {
            String s = params[0];
            BufferedReader bufferedReader = null;
            try {
                URL url = new URL(REGISTER_URL+s);
                HttpURLConnection con = (HttpURLConnection) url.openConnection();
                bufferedReader = new BufferedReader(new InputStreamReader(con.getInputStream()));

                String result;

                result = bufferedReader.readLine();

                return result;
            }catch(Exception e){
                return null;
            }
        }
    }

    RegisterUser ru = new RegisterUser();
    ru.execute(urlSuffix);
}
</code></pre>