I am uploading an image with Glide, as follows.
It turns out that sometimes fails me, since sometimes the url1 does not exist, and I have to load a url2 . (url1 and url2 is a String that corresponds to the URL of the image)
I want to know how to retry with the url2 if a url1 fails ...
EDIT: url1 and url2 are not null or empty. They have different formats when they were created and I must try with a format first and if it does not load, try with the other format.
String url1= "http://www.foto.xd/juan_perez_123456.jpg"; String url2= "http://www.foto.xd/123456.jpg";