Android Question ImageDownloader question

Douglas Farias

Expert
Licensed User
Longtime User
hi i have 2 questions


1- How i update the imagedownloader with new images?

i make this sub on my app

B4X:
Sub atualizanaoenviadas
    imgn1.Background = Null
    imgn2.Background = Null
    imgn3.Background = Null
    imgn4.Background = Null
  Dim links As Map
  links.Initialize
      links.Clear
    links.Put(imgn1, "http://10.0.10.0/clickfight/UsersImages/"&userid&"/MeuPerfil/NaoEnviadas/Miniaturas/"&"0.jpg")
    links.Put(imgn2, "http://10.0.10.0/clickfight/UsersImages/"&userid&"/MeuPerfil/NaoEnviadas/Miniaturas/"&"1.jpg")
    links.Put(imgn3, "http://10.0.10.0/clickfight/UsersImages/"&userid&"/MeuPerfil/NaoEnviadas/Miniaturas/"&"2.jpg")
    links.Put(imgn4, "http://10.0.10.0/clickfight/UsersImages/"&userid&"/MeuPerfil/NaoEnviadas/Miniaturas/"&"3.jpg")
    CallSubDelayed2(ImageDownloader, "Download", links)
End Sub

and this works i put this on the create first time and works

in my code i have a upload button
you can upload a new photo

later the upload is finish
i call the sub again for update the new images
atualizanaoenviadas

but dont update o_O
i see the new images in my vps but the app dont update with
atualizanaoenviadas again, why this?

i have tryed to make the imageview = null later download again but image realy dont change.
why?


2° how can i clean the images for dont give me memory error later
imgn1.Background = Null 'this is correct?

all time i call the sub
atualizanaoenviadas and i make the imageview = null this is correct?
 
Top