Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Wikipedia Article search not display proper in my webview?

I am working in Wikipedia-Article search try ing wikipedia API sandbox and geting urls like http://en.wikipedia.org/wiki/Special:ApiSandbox. using this geting url parsing that urls get data that data display in my webview but that data not display in my webview properly.

I want display json data in my webview.That all webview data not fix in my webview,some times my data display out of screen in that time my webview scroll to horizontal.

EDIT: Remove horizontal scroll in my webview, data out of screen.

edit: Here is my screen-shot ; I want my webview data display like this

enter image description here

but my data display like this only how to solve this issue without change HTML data because my html data is dynamic.

Anyone have any library wikipedia search article give me some ideas.

enter image description here

ANOTHER QUESTION:How to remove specific <div>,<table>,Data in My Dynamic Html data and how to get specific word in webviewclick(like listview click). give me any wikipedia library it is very usefull to me.

Can someone please give some hints/suggestions on how this can be done.

like image 768
NagarjunaReddy Avatar asked Mar 01 '13 10:03

NagarjunaReddy


1 Answers

WebSettings settings = webview.getSettings();
settings.setBuiltInZoomControls(false);
settings.setUseWideViewPort(true);
settings.setJavaScriptEnabled(true);
settings.setSupportMultipleWindows(true);
settings.setJavaScriptCanOpenWindowsAutomatically(true);
settings.setLoadsImagesAutomatically(true);
settings.setLightTouchEnabled(true);
settings.setDomStorageEnabled(true);
settings.setLoadWithOverviewMode(true);

try these setting with your webview, i got my rendering error fixed with this code.

like image 182
skygeek Avatar answered Nov 09 '22 22:11

skygeek