I have some question about volley
- How can i get connection response time with volley library?
- Have a solution for it?
- can i use timer for getting the response time?how?
- And also have a method for execute before connection in volley ?
my code like this:
final String URL = "http://domain.com/conn.php";
StringRequest req = new StringRequest(URL, new Response.Listener<String>() {
@Override
public void onResponse(String response)
{
startActivity(new intent(SplashActivity.this,MainActivity.class));
finish();
}
},
new Response.ErrorListener()
{
@Override
public void onErrorResponse(VolleyError error)
{
if(RRequestErrorHelper.getMessage(error) == null || RRequestErrorHelper.getMessage(error).isEmpty())
{
}
zLog.error(RRequestErrorHelper.getMessage(error));
}
});
zRequestHelper.getInstance().addToRequestQueue(req,"TAG");