I have a webView in that displaying the contents which is crawl from web. and some time it's appear the previous displayed info/data not new one even-though I am entering different roll number then after some times it's display the previous displayed data ... what is the reason and how to solve, please help me to solve this problem.
To clear the webview info ,data,history I have used these methods then after same problem.
web_view.clearView();
web_view.clearHistory();
web_view.clearFormData();
web_view.clearCache(true);
web_view.clearAnimation();
code:
web_view.clearView();
web_view.clearHistory();
web_view.clearFormData();
web_view.clearCache(true);
web_view.clearAnimation();
if(result!=null&&result.length()>0) {
web_view.setVisibility(View.VISIBLE);
web_view.startAnimation(animation);
lv.setVisibility(View.GONE);
web_view.loadData(result, "text/html", null);
web_view.setBackgroundColor(0x00000000);
Vibrator vibe = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
vibe.vibrate(100);
}