Next, I have an Android app, this app wants to verify the existence of a web image to be able to load 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 upload and if it does not exist let me know so I can define a message. I think it's well explained. It should not necessarily be an image, 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");
}