Q: Volley StringRequest not inserting data in Firebase I am trying to insert user input in firebase and am using Volley. But nothing being inserted in firebase.Below is the code -
                String url = "https://zimber-69c82.firebaseio.com/";

                StringRequest stringRequest = new StringRequest(StringRequest.Method.GET, url, new Response.Listener<String>() {
                    @Override
                    public void onResponse(String response) {
                        Firebase firebase = new Firebase("https://zimber-69c82.firebaseio.com/users");
                        if (response.equals("null")) {
                            firebase.child(user).child("password").setValue(pass);
                            Toast.makeText(RegisterActivity.this, "registration successful", Toast.LENGTH_SHORT).show();
                        } else {
                            try {
                                JSONObject object = new JSONObject(response);
                                if (!object.has(user)) {
                                    firebase.child(user).child("password").setValue(pass);
                                    Toast.makeText(RegisterActivity.this, "registration successful", Toast.LENGTH_SHORT).show();
                                } else {
                                    Toast.makeText(RegisterActivity.this, "username already exists", Toast.LENGTH_LONG).show();
                                }
                            } catch (Exception ex) {
                                ex.printStackTrace();
                            }
                        }
                        progressDialog.dismiss();
                    }
                }

