ub Process_Globals
End Sub
Sub Globals
Dim Button2 As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("InstallerUserQuick")
Activity.Title = "D8"
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button1_Click
StartActivity("D8Quick")
End Sub
Sub Button2_Click
Dim job As HttpJob
job.Initialize("j", Me)
job.Download("http://www.k2mdev.com.au/ness/PDF/D8_installer_manual_rev4.7.pdf")
End Sub
Sub JobDone(job As HttpJob)
If job.Success Then
Dim out As OutputStream = File.OpenOutput(File.DirRootExternal, "D8Installerguide.pdf", False)
File.Copy2(job.GetInputStream, out)
out.Close '<------ very important
Else
Log("Error: " & job.ErrorMessage)
End If
job.Release
End Sub