title: Volley JsonObject Request (method get) not working
body: <p>I am using volley for connecting to my rest web service. I have an .php address that return a json object. I use this code in my android app to get this object:</p>
  
  <pre><code>public void  getData() {
          final ProgressDialog progressDialog =  new ProgressDialog(this);
          progressDialog.setMessage("Loading...");
          progressDialog.show();
  
          JsonObjectRequest jsonArrayRequest = new JsonObjectRequest(Request.Method.GET,URI_AZMOON_QUESTIONS,null,
                  new Response.Listener&lt;JSONObject&gt;() {
              @Override
              public void onResponse(JSONObject response) {
                  String s="t";
              }
          }, new Response.ErrorListener() {
              @Override
              public void onErrorResponse(VolleyError error) {
                  Log.e("Volley", error.toString());
                  progressDialog.dismiss();
              }
          });
          requestQueue.add(jsonArrayRequest);
      }
  </code></pre>
  
  <p>but this request never runnig. I mean when I debug the program it never go to the <code>onResponse</code> and <code>onErrorResponse</code> methods.</p>
  
  <p><strong>Update</strong><br>
  this my Code:</p>
  
  <pre><code>import android.app.ProgressDialog;
  import android.content.Context;
  import android.net.ConnectivityManager;
  import android.support.v7.app.AppCompatActivity;
  import android.os.Bundle;
  import android.util.Log;
  import android.view.View;
  import android.widget.ImageView;
  import android.widget.LinearLayout;
  import android.widget.ListView;
  import android.widget.TextView;
  
  import com.android.volley.Request;
  import com.android.volley.RequestQueue;
  import com.android.volley.Response;
  import com.android.volley.VolleyError;
  import com.android.volley.toolbox.JsonArrayRequest;
  import com.android.volley.toolbox.JsonObjectRequest;
  import com.android.volley.toolbox.StringRequest;
  import com.android.volley.toolbox.Volley;
  import com.shaz.zist.Adapter.AzmoonsAdapter;
  import com.shaz.zist.Models.AzmoonQuestion;
  
  import org.json.JSONArray;
  import org.json.JSONException;
  import org.json.JSONObject;
  
  import java.util.ArrayList;
  import java.util.List;
  
  import WebService.WebService;
  
  
  public class GroupQuizActivity extends AppCompatActivity implements View.OnClickListener {
  public static final String URI_AZMOON_QUESTIONS = "http://zahra-t.zili.ir/azmoon/read.php";
      List&lt;AzmoonQuestion&gt; azmoons=new ArrayList&lt;&gt;();
      AzmoonsAdapter adapter;
      LinearLayout noNetwork;
      ListView azmoonList;
      ImageView refresh;
      RequestQueue requestQueue;
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_group_quiz);
          noNetwork=findViewById(R.id.noconection);
          azmoonList=findViewById(R.id.quizesList);
          refresh=findViewById(R.id.refresh);
          refresh.setOnClickListener(this);
          requestQueue = Volley.newRequestQueue(this);
          checkNetworkConnection();
      }
  
      private void checkNetworkConnection() {
          ConnectivityManager connectivityManager =  (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
           boolean netResult=false;
           if(connectivityManager.getActiveNetworkInfo()!=null)
           netResult=connectivityManager.getActiveNetworkInfo().isConnectedOrConnecting();
           if(!netResult){
               noNetwork.setVisibility(View.VISIBLE);
           }
           else{
               noNetwork.setVisibility(View.GONE);
               setUpListView();
           }
      }
  
      private void setUpListView() {
          WebService wb=new WebService(this,azmoons);
          adapter=new AzmoonsAdapter(this,azmoons);
          azmoonList.setAdapter(adapter);
          getData();
      }
  
      @Override
      public void onClick(View v) {
          switch (v.getId()){
              case R.id.refresh:{
                  checkNetworkConnection();
                  break;
              }
          }
      }
      public void  getData() {
          final ProgressDialog progressDialog =  new ProgressDialog(this);
          progressDialog.setMessage("Loading...");
          progressDialog.show();
          /*StringRequest rs=new StringRequest(URI_AZMOON_QUESTIONS, new Response.Listener&lt;String&gt;() {
              @Override
              public void onResponse(String response) {
                  String ss=response;
              }
          }, new Response.ErrorListener() {
              @Override
              public void onErrorResponse(VolleyError error) {
  
              }
          });*/
          JsonArrayRequest jsonArrayRequest = new JsonArrayRequest(Request.Method.GET, URI_AZMOON_QUESTIONS, null,
                  new Response.Listener&lt;JSONArray&gt;() {
                      @Override
                      public void onResponse(JSONArray response) {
  
                      }
                  }, new Response.ErrorListener() {
              @Override
              public void onErrorResponse(VolleyError error) {
                  Log.e("Volley", error.toString());
                  progressDialog.dismiss();
              }
          });
          requestQueue.add(jsonArrayRequest);
      }
  }
  </code></pre>