In my code, I have my own cache directory set to SDCard, and I point "WebView.getSettings (). SetAppCachePath (" ") to this path, but the OS sends the cache to the default cache (/ data / data / com .your.package.appname / cache). The user directory is created correctly where it should be, but the data does not fall into it. The reason I use the custom directory is that the cache will be large and temporary, so I need to the user could delete certain caches.
Am I missing something? Any help, code or suggestions would be appreciated as always.
Thank you.
public class DocumentView extends Activity { @Override public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); String l = getIntent().getStringExtra("LABEL"); CreateCacheDirectory(); final String url = getIntent().getStringExtra("url");
source share