Hi people
I have a webview, and I am using overrideurl to catch all navigation, checking for certain files and then issuing:
Dim req As HttpRequest
req.InitializeGet(url)
hc.Execute(req, 1)
In the above code, I have hc declared as HttpClient, and initialized in the "firsttime" instance. Afterwards I have the following code (filename is a string that is declared in global:
Sub hc_ResponseSuccess (Response As HttpResponse, TaskId As Int)
Dim out As OutputStream
out = File.OpenOutput(File.DirDefaultExternal, filename, False)
File.Copy2(response.GetInputStream,out)
out.close
response.release
End Sub
it works, but "internally" and "silently" ... I mean by this: It downloads the file and stores it in the sdcard inside the Android/package name/files path, and it does not show the "downloading" icon on android OS, nor it shows the downloaded file in the events tasklist or taskbar or whatever it is called the raising list of system messages that android has).
I actually need it to behave just as a normal browser: to show in the "task bar" and get downloaded in the directory by default for such stuff (in mi case is sdcard/downloads, but I dont know if this is standard, or I can get this path from somewhere). :BangHead:
Can anyone give me a bump or hint in the right direction to accomplish the "visualisation" of the download process as it would happen in a normal browser such as system browser or dolphin browser ?, appearing in the "events taskbar" ?
Regards,
Enrique