Ok,
so I'm running a service and here is the code for when the service runs an update of grabbing an RSS Feed's data to parse:
(job1 is declared in Globals as an Httpjob from the HTTPUtils2Service combo pack)
Now, when I run this for the first time after install, the data is up to date. But, when the refresh is called (either manually or activated by StartService), the data will sometimes be "old"
By this, I mean that if I refresh the same page on my PC, it will have a few more items on it than my call gets. (by this I mean "newer items" as the list is always 40 items)
But, if I change my phone to take the 3G connection vs WiFi, then the data will almost "always" be the newer version I see on my PC. But wait, there's more, if I go back to the WiFi, then most of the time, it reverts to the "old" data. (same code as above is the only code call for Httpjob) As you can see, I initialize the job each time (and release it at the end of the process, but that would be a memory issue)
This almost seems to me that there is a cached file on the WiFi side of the equation (not on the phone). Is there a way to send an httpjob request such that it says "give me the newest data available, and not the cache.. as that's why I'm paying the monthly fee for this fast internet connection, you #$#$@"?
so I'm running a service and here is the code for when the service runs an update of grabbing an RSS Feed's data to parse:
(job1 is declared in Globals as an Httpjob from the HTTPUtils2Service combo pack)
B4X:
Sub rv_RequestUpdate
mParser.Initialize(Me, "bahtsold")
job1.Initialize("job1", Me)
CallSubDelayed2(job1, "Download", "http://www.bahtsold.com/rss.php")
'
strTime = "Reload"
rv.SetText("lblTime", strTime)
rv.UpdateWidget
End Sub
Now, when I run this for the first time after install, the data is up to date. But, when the refresh is called (either manually or activated by StartService), the data will sometimes be "old"
By this, I mean that if I refresh the same page on my PC, it will have a few more items on it than my call gets. (by this I mean "newer items" as the list is always 40 items)
But, if I change my phone to take the 3G connection vs WiFi, then the data will almost "always" be the newer version I see on my PC. But wait, there's more, if I go back to the WiFi, then most of the time, it reverts to the "old" data. (same code as above is the only code call for Httpjob) As you can see, I initialize the job each time (and release it at the end of the process, but that would be a memory issue)
This almost seems to me that there is a cached file on the WiFi side of the equation (not on the phone). Is there a way to send an httpjob request such that it says "give me the newest data available, and not the cache.. as that's why I'm paying the monthly fee for this fast internet connection, you #$#$@"?