Tried out retry policy.Added Volley library as jar dependency instead of adding whole source code.