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
Generating Edit Text Programmatically in Android
How to Get Android Avd Name from Adb Device Name
What Is Metadata ? and What Is The Use of It in Android
Getting the Pixel Color Value of a Point on an Android View That Includes a Bitmap-Backed Canvas
How to Add Padding Between Menu Items in Android
How to Get Preview in Composable Functions That Depend on a View Model
Set Rowspan or Colspan of a Child of a Gridlayout Programmatically
Running Google Map Application on Android Emulator
Android Studio: Exclude Resource File Under Resources Sourcesets
JSONarray Cannot Be Converted to JSONobject Error
Howto Do a Simple Ftp Get File on Android
Android: HTML Anchor Link Works Only Once in Webview
Resources and Layout Direction Rendered Incorrectly Only on Android 8.0 and Above
Android Webview HTML5 Video Autoplay Not Working on Android 4.0.3
Extract Notification Text from Parcelable, Contentview or Contentintent