Hola.
En el mensaje #9 de este hilo Erel pone un código completo de una descarga de archivo, incluido el Jobdone. Adáptalo según tus necesidades.
Saludos.
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
			
			En el mensaje #9 de este hilo Erel pone un código completo de una descarga de archivo, incluido el Jobdone. Adáptalo según tus necesidades.
Saludos.
			
				B4X:
			
		
		
		Sub Process_Globals
   
End Sub
Sub Globals
End Sub
Sub Activity_Create(FirstTime As Boolean)
   For Each s As String In Array As String("save.jpg", "Button-Add-icon.png", "ruta.jpg", _
      "excel.png")
      Dim job As HttpJob
      job.Initialize(s, Me)
      job.Download("http://www..mx/uploads/" & s)
   Next
End Sub
Sub JobDone (Job As HttpJob)
   Log("JobName = " & Job.JobName &" -Image Download Name = "& ", Success = " & Job.Success)
   If Job.Success = True Then
      'is this really needed ???
       Dim out As OutputStream
       out = File.OpenOutput(File.DirDefaultExternal, Job.JobName ,False )
       File.Copy2(Job.GetInputStream, out)
       out.Close
       Activity.SetBackgroundImage(Job.GetBitmap)
   Else
      Log("Error: " & Job.ErrorMessage)
      ToastMessageShow("Error: " & Job.ErrorMessage, True)
   End If
   Job.Release
End Sub 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		