khwarizmi Active Member Licensed User Longtime User Nov 18, 2023 #1 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.
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 Nov 18, 2023 #2 khwarizmi said: 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. Click to expand... How can I delete the data that OkHttpUtils2 previously obtained?? Upvote 0
khwarizmi said: 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. Click to expand... How can I delete the data that OkHttpUtils2 previously obtained??
B Brian Dean Well-Known Member Licensed User Longtime User Nov 18, 2023 #3 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
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.
Erel B4X founder Staff member Licensed User Longtime User Nov 19, 2023 #4 1. Don't forget to call Job.Release. 2. Don't forget to check that Job.Success is true before trying to access the downloaded data. Upvote 0
1. Don't forget to call Job.Release. 2. Don't forget to check that Job.Success is true before trying to access the downloaded data.
khwarizmi Active Member Licensed User Longtime User Nov 19, 2023 #5 Thanks. I will try to add: B4X: if Job.Success = true then ' load data in the form end if Upvote 0