2
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 a www.somemacoisa.com/img/imagem5.png I will show a message. So what I need is to validate the image before loading, or try to load and if there is no informing me so I can set a message. I think that’s pretty well explained. Code: //Here I want to check if there is a file at this address: //www.lojaimpacto.com.br/img/foto05.png
if(file exists){
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");
}
You can edit your answer and put the code you are using on the server and also tell where the image is?
– Felipe Marinho