I am using the following code to download mp4's
--------------------------------------------
'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim URL As String
'URL = "http://pirsqrt.com/EduscapeWP/Movies/LinearEq3a.mp4"
URL = "http://pirsqrt.com/EduscapeWP/Movies/TrigDerv1a.mp4"
Dim HttpClient1 As HttpClient
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
HttpClient1.Initialize("Http")
End If
Dim request As HttpRequest
request.InitializeGet(URL)
HttpClient1.Execute(request, 1)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
'this works down loaded LinearEq
Sub Http_ResponseSuccess(Response As HttpResponse, TaskId As Int)
Response.GetAsynchronously("ResponseSub", File.OpenOutput _
(File.DirRootExternal, "TrigMovie.mp4", False), True, TaskID)
End Sub
Sub ResponseSub_StreamFinish (Success As Boolean, TaskId As Int)
'work with downloaded file
End Sub
---------------------------------------------------
And it works great. I would like the user see there is a download happing.
Can this be accomplished.