Need to disable the cache on WebView
s inflated through Proteus.
Are there any attributes on the
WebView
which can be used to disable it?
We could find the view normally would if it was inflated using precompiled XML layouts using findViewById(R.id.something)
and call the following methods on it.
WebView wv = parent.findViewById(R.id.webview);
WebSettings ws = wv.getSettings();
ws.setAppCacheEnabled(false);
ws.setCacheMode(WebSettings.LOAD_NO_CACHE)
But since proteus inflates layouts using
JSON
from the server I cannot find the view like this and the solution would not scale for multipleWeView
s.