I need to include this in my app
When should it get triggered?
Volley DETROYS all listeners as soon as it receives something from the server, regardless of whether the response is a proper response or an error response.
A request needs to constructed everytime it should be sent or resent.
These steps will help achieve it
Retry
and other necessary buttons like Wifi Settings
, Mobile Network Settings
FrameLayout
inside RelativeLayout
on necessary views to accommodate the fragment created and hide it initiallyFrameLayout
visible and the retry button should call the function that constructs and calls the requestI have encountered the same needs and issues. I am working on a Volley based library jus where most the issues you have had i handle with rxJava global observables and of course Alerts class with static alerts/views generators. the connectivity handling I try to make it smooth using ConnectivityManager and NoConnectionPolicy concepts.