title: Volley: TimeOutError
body: <p>i want to fetch some data from a URL and the server is very slow...
  So whenever i use volley to get the data, I get <code>TimeOurError</code>,
  Is there anyway i can handle for how long volley should try to get the data as the server is slow...It takes little time
  and i also want to run this request constantly to check data, I plan to use Timer for it...Is it okay to use Timer for continuously checking data?</p>
  
  <p>Here is my volley request for now...It works for other URL's</p>
  
  <pre><code>public void checkData() {
      StringRequest stringRequest = new StringRequest(Request.Method.POST, URL,
              new Response.Listener&lt;String&gt;() {
                  @Override
                  public void onResponse(String response) {
                      Log.i("Response",response);
                  }
              },
              new Response.ErrorListener() {
                  @Override
                  public void onErrorResponse(VolleyError error) {
                      Log.i("Response",error.toString());
                  }
              }){
          @Override
          protected Map&lt;String, String&gt; getParams() throws AuthFailureError {
              Map&lt;String,String&gt; map = new HashMap&lt;String,String&gt;();
              map.put("deviceID","none");
              return map;
          }
      };
  
      RequestQueue requestQueue = Volley.newRequestQueue(this);
      requestQueue.add(stringRequest);
  
  }
  </code></pre>
  
  <p>and i need to call this functions continuously( inside app)</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I used </p>
  
  <pre><code>tringRequest.setRetryPolicy(new DefaultRetryPolicy(
              30000,
              DefaultRetryPolicy.DEFAULT_MAX_RETRIES,
              DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));
  </code></pre>
  
  <p>and it worked, Now I want to make this request continuously in my app...What is the best approach for that?</p>