Android Question HttpJob not download last data

Treyvanoft

Member
Licensed User
Longtime User
HttpJob can't download last update data from database i delete some row from database but it's not remove from application
 

DonManfred

Expert
Licensed User
Longtime User
It is working fine for me...

B4X:
Sub Activity_Resume
    ' Array As String("p1", "Php", "p2", "MySql")
    Dim jobgetpet As HttpJob
  Dim email As String = "pettyp@treyvasoft.com"
  jobgetpet.Initialize("getpet", Me)
  jobgetpet.Download("http://www.pettyp.com/pettyp/pservice/getfn.php?fn=getpet&emadolo="& email)
End Sub
Sub JobDone(Job As HttpJob)
  If Job.Success Then
      Dim Res As String = Job.GetString
    Log("Back from Job:" & Job.JobName )
    Log("Response from server: " & Res)
       
    End If
End Sub

Here is the log after multiple orientationchanges....

 

Attachments

  • treyvanoft.zip
    6.8 KB · Views: 131
Upvote 0

Treyvanoft

Member
Licensed User
Longtime User
Thanks. Don. i can get data from server but it's not real-time data. i find this problem because cache from server. i add new parameter(time format) before send to server .
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…