In my project i am using volley library for network call, my problem is my mobile is connected with internet but if i call the service using volley library its accessing the public void onErrorResponse(VolleyError error) {
and if (error instanceof NoConnectionError) {
Toast.makeText(getApplicationContext(), R.string.no_internet_connection, Toast.LENGTH_SHORT).show();
} else {
its calling the NoConnectionError.
how to solve this???