在我的活动我送的意图,浏览器以显示网页:编程方式清除浏览器缓存/历史
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("http://ww.mywebpage.com");
startActivity(i);
我需要确保发送意图的浏览器缓存和历史前被清除,以便页面从服务器直接加载而不是从手机加载。
到目前为止,我已经找到了2下,但我不知道他们是正确的:
Browser.clearHistory(getContentResolver());
Browser.clearSearches(getContentResolver());
还与缓存不被清除。
你知道该怎么做吗?
无法解析clearHistory方法 (android.content.contentresolver) – DKV 2016-03-02 13:17:21