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.
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.
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.