j.Initialize("job", Me)
j.Download(modMain.shareableLinkGD) 'or modMain.shareableLinkDB
Sub JobDone(job As HttpJob)
ProgressDialogHide
If job.Success Then
'we can check the of value job.JobName if there is more than one job
'Activity.SetBackgroundImage(job.GetBitmap)
Dim out As OutputStream = File.OpenOutput(File.DirDefaultExternal, "Songs_DB2.db3", False)
File.Copy2(job.GetInputStream, out)
out.Close
ToastMessageShow("DB Downloaded Successfully", False)
Else
Log("Error: " & job.ErrorMessage)
End If
job.Release
End Sub