Hi,
Thanks for your inputs and example shared. i could able to download, but file name as is not coming as-is. coming as java.lang.object@..I am new to this concept..I am downloding a zip file from a url downloading with the mentioned name..not the same name with extension coming.
I am using the same code you shared in the example.
Case "Job4"
'print the result to the logs
Dim OutStream As OutputStream
Log("DownloadReady: "&Job.Tag)
OutStream = File.OpenOutput(File.DirRootExternal, Job.Tag, False) ' Job.Tag is read to set the Original Filename we specify earlier in the creation of the Job
File.Copy2(Job.GetInputStream,OutStream) ' save the file
OutStream.Close
Log(Job.Tag&" written to "&File.DirRootExternal) ' Write the Originalname to the log to see what happens ;-)
Dim i As Intent
i.Initialize("android.intent.action.MEDIA_SCANNER_SCAN_FILE", _
"file://" & File.Combine(File.DirRootExternal, Job.Tag))
Dim p As Phone
p.SendBroadcastIntent(i)
ToastMessageShow("Download Complete", True)
ToastMessageShow("Sucess", True)