always hitting in database 2147483647 in android studio volley [closed]

  android, android-studio-3.0, android-volley, java, xml
Java code
always hitting in database 2147483647 in android studio volley

always hitting in database 2147483647 in android studio volley
always hitting in database 2147483647 in android studio volley
always hitting in database 2147483647 in android studio volley

    ```static int OTP;
    Boolean status = false;
    Button send_otp, btn_register;
    EditText edt_mobile, edt_otp, edt_password, edt_repassword;
    static String send_otp_url = "http://shetakariapp.mindtechinfo.in/XXX/XXX.php";
    static String register_user_url = "http://shetakariapp.mindtechinfo.in/XXX/XXX.php";
    ProgressDialog progressDialog;
    String mobile;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_register);
        getSupportActionBar().hide();
        progressDialog = new ProgressDialog(this);


        send_otp = findViewById(R.id.send_otp);
        btn_register = findViewById(R.id.register_transition_button);

        edt_mobile = findViewById(R.id.edt_mobile_number);
        edt_otp = findViewById(R.id.edt_verify_otp);
        edt_password = findViewById(R.id.edt_password);
        edt_repassword = findViewById(R.id.edt_retype_password);



        btn_register.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Register();
            }
        });

    }


    private void SendOtp() {
        final String mobile_no = edt_mobile.getText().toString().trim();
        //mobile_no = mobile;

        progressDialog.setMessage("Please Wait.....");
        progressDialog.show();
        progressDialog.setCancelable(false);
        Random r = new Random();
        final int otp = r.nextInt(99999 - 12345) + 22;
        final String send_otp = String.valueOf(otp);
        //Toast.makeText(this, ""+send_otp, Toast.LENGTH_SHORT).show();
        OTP = otp;

            StringRequest stringRequest = new StringRequest(Request.Method.POST, send_otp_url, new Response.Listener<String>() {
                @Override
                public void onResponse(String response) {
                    progressDialog.dismiss();
                    Toast.makeText(RegisterActivity.this, "OTP Sent..", Toast.LENGTH_SHORT).show();

                }
            }, new Response.ErrorListener() {
                @Override
                public void onErrorResponse(VolleyError error) {
                    progressDialog.dismiss();
                    Toast.makeText(RegisterActivity.this, "Please Try Again" + error, Toast.LENGTH_SHORT).show();

                }
            }) {
                @Override
                protected Map<String, String> getParams() {
                    Map<String, String> parms = new HashMap<String, String>();
                    parms.put("mobile_no", mobile_no);
                    parms.put("otp", send_otp);
                    return parms;
                }
            };
            RequestQueue requestQueue = Volley.newRequestQueue(getApplicationContext());
            requestQueue.add(stringRequest);
        }




    public void Register()
    {


        if(edt_otp.getText().toString().equals(String.valueOf(1234)))
        {
            final String password = edt_password.getText().toString().trim();
            final String repassword = edt_repassword.getText().toString().trim();
            //final String mobile1 = edt_mobile.getText().toString().trim();
            //Toast.makeText(RegisterActivity.this, ""+mobile_no1, Toast.LENGTH_SHORT).show();
            //Toast.makeText(RegisterActivity.this, ""+password, Toast.LENGTH_SHORT).show();
            //Toast.makeText(RegisterActivity.this, ""+repassword, Toast.LENGTH_SHORT).show();


            if(password.equals(repassword))
            {
                final String mobile_no1 = edt_mobile.getText().toString().trim();

                progressDialog.setMessage("Please Wait.....");
                progressDialog.show();
                progressDialog.setCancelable(false);

                StringRequest stringRequest = new StringRequest(Request.Method.POST, register_user_url, new Response.Listener<String>() {
                    @Override
                    public void onResponse(String response) {
                        progressDialog.dismiss();
                        //Toast.makeText(RegisterActivity.this, "OTP Sent..", Toast.LENGTH_SHORT).show();
                        Toast.makeText(RegisterActivity.this, ""+response, Toast.LENGTH_SHORT).show();

                    }
                }, new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError error) {
                        progressDialog.dismiss();
                        //Toast.makeText(RegisterActivity.this, "Please Try Again" + error, Toast.LENGTH_SHORT).show();
                        Toast.makeText(RegisterActivity.this, "" + error, Toast.LENGTH_SHORT).show();

                    }
                }) {
                    @Override
                    protected Map<String, String> getParams() {
                        Map<String, String> parms = new HashMap<String, String>();
                        parms.put("mobile_no", mobile_no1);
                        parms.put("password", password);
                        return parms;
                    }
                };
                RequestQueue requestQueue = Volley.newRequestQueue(getApplicationContext());
                requestQueue.add(stringRequest);
            }

            else
            {
                Toast.makeText(this, "Check Password Again !", Toast.LENGTH_SHORT).show();
            }
        }
        else
        {
            Toast.makeText(this, "Enter Correct OTP !!!", Toast.LENGTH_SHORT).show();
        }
    }

}

always hitting in database 2147483647 in android studio volley
always hitting in database 2147483647 in android studio volley

Source: Android Questions

LEAVE A COMMENT