Sub Activity_Create(FirstTime As Boolean)
'
'Stuff
If FirstTime Then
'
'Stuff
'
Private Job As HttpJob
Job.Initialize("j", Me)
Job.Download("https://www.dropbox.com/s/6blkum2r49ey6vb/conver.txt?dl=0")
End If
'
'
End Sub
Sub JobDone(Job As HttpJob)
If Job.Success Then
Private out As OutputStream = File.OpenOutput(File.DirRootExternal & "/Download/", "conver.txt", False)
File.Copy2(Job.GetInputStream, out)
out.Close '<------ very important
Private AppVer As Int = Application.VersionCode
Private VFunction As TextReader
Private Riedlyne As String
VFunction.Initialize(File.OpenInput(File.DirRootExternal & "/Download/", "conver.txt"))
Riedlyne = VFunction.ReadLine
Log("AppVer = "&AppVer)
Log("Riedlyne = "&Riedlyne)
If Riedlyne = Null Then Riedlyne = 0
If AppVer < Riedlyne Then
Msgbox2Async("Go to Play Store Now?","NEW UPDATE AVAILABLE","YES","","NO THANKS",Null,False)
Wait For Msgbox_Result (Result As Int)
If Result = DialogResponse.POSITIVE Then
StartActivity(PhoneIntents1.OpenBrowser("https://play.google.com/store/apps/details?id=b4a.configulator_calculator&hl=en"))
End If
End If
VFunction.Close
Else
'Log("Error: " & job.ErrorMessage)
End If
Job.Release
End Sub