title: short Glitch in making android dynamic
body: <p>I am sending a json request using params and the glitch is when I hardcode the user name and password , it works and when I set the variables it doesn't ?
  What to write inplace of "ankur@gmail.com" &amp; "123456"</p>
  
  <pre><code>    EditText username = (EditText)findViewById(R.id.edituser);
              EditText password = (EditText)findViewById(R.id.editpass);
              Button button = (Button)findViewById(R.id.signin);
              final JSONObject jsonObject = new JSONObject();
              String temp = '\u0022' +username.getText().toString().trim()+'\u0022';
              String temp1 ='\u0022'+password.getText().toString().trim()+'\u0022';
  
  .........
  
  
  final HashMap&lt;String,String&gt; params = new HashMap&lt;String, String&gt;();
      params.put("user_email","ankur@gmail.com");
      params.put("user_password","123456");
      Log.d("jsonobject", "jsonobjectResponse: "+params);
  
  .........
  
      button.setOnClickListener(new View.OnClickListener() {
                  @Override
                  public void onClick(View v) {
                      JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.POST,url,new JSONObject(params),
                              new Response.Listener&lt;JSONObject&gt;() {   .........
  </code></pre>
  
  <p>logs</p>
  
  <pre><code>07-06 12:23:32.365 4701-4701/com.production.vy.triqsquad D/jsonobject: jsonobjectResponse: {user_password=, user_email=}
  07-06 12:23:56.046 4701-4701/com.production.vy.triqsquad D/aaa: onErrorResponse: org.json.JSONException: Value &lt;br of type java.lang.String cannot be converted to JSONObject
  07-06 12:24:04.765 4701-4701/com.production.vy.triqsquad D/aaa: onErrorResponse: org.json.JSONException: Value &lt;br of type java.lang.String cannot be converted to JSONObject
  07-06 12:24:07.584 4701-4701/com.production.vy.triqsquad D/aaa: onErrorResponse: org.json.JSONException: Value &lt;br of type java.lang.String cannot be converted to JSONObject
  </code></pre>
  
  <p>why the password is before username when I am writing username above password</p>