0
Next, I have an Android app, this app wants to check the existence of an image on the web to be able to load by Picasso, if the image does not exist in an example address www.algumacoisa.com/img/imagem5.png I will show a message. So what I need is to validate the image(file) before loading, or try to load and if there is no informing me so I can define a message. I think it is well explained. It should not be a picture, or using Picasso.
Code:
Check if there is a file at www.lojaimpacto.com.br/img/foto05.png
if(arquivo existe){
iv_xml01_logo = (ImageView) findViewById(R.id.iv_xml01_logo);
Picasso.with(lista_fones.this)
.load(www.lojaimpacto.com.br/img/foto05.png)
.resize(300, 155)
.centerInside()
.into(iv_xml01_logo);
} else {
System.out.println("Arquivo não existe");
}