Android Question How to disable android cache ?

little3399

Active Member
Licensed User
Longtime User
HTTPJOB data Cache ... because I found some data which received from SERVER will be stored in the cache .... and I want to disable cache so the data can be synchronous to the Server
 
Upvote 0

susu

Well-Known Member
Licensed User
Longtime User
Maybe off topic: How to clear cache? After sometime of using, my app is full of cached file in /data/data/package.name/cache
 
Upvote 0

eps

Expert
Licensed User
Longtime User
How are you retrieving the information?

GET or PUT? Put should get the current information whereas a GET will use cached information for instance.
 
Upvote 0

eps

Expert
Licensed User
Longtime User
Can you post some code please, as it's a bit hard to work out what the issue is...

Something like :

B4X:
    Dim DataUrl, DataPostString As String

    DataUrl = "http://www.url.com"

    DataPostString = "your_poststring_here"   

    Current_Filter = "ALL"

    Dim job As HttpJob


    'Send a POST request

    job.Initialize("Data Update", Me)

    job.PostString(DataUrl & DataPostString, Null)


    ProgressDialogShow2("Refreshing reference data...", False)
 
Upvote 0
Top