Android Question Disabling OkHttpUtils2 from saving previous data

khwarizmi

Active Member
Licensed User
Longtime User
Hi all

How can I prevent OkHttpUtils2 from saving data which is obtained from the current download? my app displays old data when there is no Internet available, this leads to user confusion.

Thanks.
 

khwarizmi

Active Member
Licensed User
Longtime User
Hi all

How can I prevent OkHttpUtils2 from saving data which is obtained from the current download? my app displays old data when there is no Internet available, this leads to user confusion.

Thanks.
How can I delete the data that OkHttpUtils2 previously obtained??
 
Upvote 0

Brian Dean

Well-Known Member
Licensed User
Longtime User
You need to show your code that requests the download. When I use OkHttpUtils2 to download data nothing is saved unless I save it myself. If I turn off my network connection then nothing comes at all. Maybe you are doing things differently.
 
Upvote 0

khwarizmi

Active Member
Licensed User
Longtime User
Thanks.
I will try to add:

B4X:
if Job.Success = true then
' load data in the form
end if
 
Upvote 0
Top