Android Webview Jellybean -> Should Not Happen: No Rect-Based-Test Nodes Found

Android WebView JellyBean - Should not happen: no rect-based-test nodes found

The issue occurs because in some scenarios WebView fails to notice that its visible rect has changed, so as far as webkit is concerned the page is still not visible. Thus all touches fall outside of the window, and get rejected.

The cleanest fix is when you know the visibility of your WebView has changed (such as in response to a setPrimaryItem callback from a viewpager), call webview.onScrollChanged(webview.getScrollX(), webview.getScrollY());

You will need to subclass the webview to promote the protected onScrollChanged to a public method.

Android web view error

try adding @Override above your boolean method in Myweb

@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
Log.d("In extends webview client","HIiiiiiiiiiiiiiii");
view.loadUrl(url);
return false;};
}

WebView in ViewPager not receive user inputs

Ok, After a lot of headache, I find this is the same problem as showed here:
Android WebView JellyBean -> Should not happen: no rect-based-test nodes found

I solved it by subclassing WebView and overriding the method:

@Override
public boolean onTouchEvent(MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_DOWN){
webview.onScrollChanged(webview.getScrollX(), webview.getScrollY());
}
return super.onTouchEvent(event);
}

Probably the first webview showed is correctly created while the other which are created by the viewpager in background, have a wrong area for receiving the event.

Maybe there is a better way to solve it, but at least now it works.

Hide Tablet system bar

Finally after searching lots of time I got some alternativ for my requirement.

I know this is not a good idea for a programmer to back off from this situation but for my time limit I used this way...

I found this link and application which fullfil my requirement

http://www.42gears.com/blog/2012/04/how-to-hide-bottom-bar-in-rooted-android-3-0-tablets-using-surelock/

please visit this once if you want this type of requirement in your application ....

Thanks to all for helping me in my problem...



Related Topics



Leave a reply



Submit