android - WebView isn't loading -


i encountering problem in android application when open webview, nothing shows up. it's white. here code:

private void addlisteneronbutton() {     spinner = (spinner) getview().findviewbyid(r.id.spinner);     final webview webview = (webview) getview().findviewbyid(r.id.webview1);     webview.getsettings().setjavascriptenabled(true);     webview.getsettings().setrenderpriority(renderpriority.high);     webview.getsettings().setcachemode(websettings.load_no_cache);     webview.getsettings().setdatabaseenabled(true);     webview.getsettings().setdomstorageenabled(true);     webview.getsettings().setappcacheenabled(true);     webview.getsettings().setbuiltinzoomcontrols(true); @override         public void onitemselected(adapterview<?> parentview, view selecteditemview, int position, long id) {             string text1 = spinner.getselecteditem().tostring().trim();              if (text1.equals("us dollar - usd")) {                           try {                     document doc = jsoup.connect("http://en.wikipedia.org/").get();                     elements newsheadlines = doc.select("#mp-itn b a");                  } catch (ioexception e) {                     // todo auto-generated catch block                     e.printstacktrace();                 }                                   } 

what happening here? have imported right jar files. doing wrong? also, beside

elements newsheadlines = doc.select("#mp-itn b a"); 

it says that

the value of local variable newsheadlines not used 

what have then? beginner in android. appreciated.

what have then?

well, if nothing else, have tell webview show something. have configured it, have not called loadurl(), loaddata(), or loaddatawithbaseurl() tell webview display.


Comments