title: I can't retrieve data from server to android studio although data is shown in a browser
body: <p>I have recently made an application in android studio 2.3 to show data from a server the link that I use is working properly in a browser and data is shown successfully in json format. But in my application I can't retrieve these data, I add avolley lib in my app gradle file like this : </p>
  
  <blockquote>
    <p><em>compile 'com.mcxiaoke.volley:library:1.0.18'</em></p>
  </blockquote>
  
  <p><strong>The code I use in MainActivity is :</strong></p>
  
  <pre><code> public class MainActivity extends AppCompatActivity {
          RequestQueue rq;
          String url = "http://abdulwahid.esy.es/show.php";
          TextView txtshow;
  
  
          @Override
          protected void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
              setContentView(R.layout.activity_main);
              txtshow = (TextView) findViewById(R.id.txtshow);
  
              rq = Volley.newRequestQueue(this);
              JsonObjectRequest jor = new JsonObjectRequest(Request.Method.GET, url,
                      new Response.Listener&lt;JSONObject&gt;() {
  
                          @Override
                          public void onResponse(JSONObject response) {
                              try {
                                  JSONArray jarr = response.getJSONArray("allstudents");
                                  for (int i = 0; i &lt; jarr.length(); i++) {
                                      JSONObject res = jarr.getJSONObject(i);
                                      String id = res.getString("id");
                                      String name = res.getString("name");
                                      String info = res.getString("info");
                                      txtshow.append("\n" + id + " - " + name + "\n" + info + "\n" + "------------------" + "\n");
                                  }
                              } catch (JSONException e) {
                                  e.printStackTrace();
                              }
                          }
                      }
                      , new Response.ErrorListener() {
  
                  @Override
                  public void onErrorResponse(VolleyError error) {
                      Log.e("VOLLEY", "ERROR");
                  }
              });
              rq.add(jor);
          }
  </code></pre>
  
  <p>The link of php file that I use is executed successfully in a web browser.
  <strong>How to show data in my application or is there another code or library to use for retrieving data form online ?</strong> </p>