I have custom Webview in android application which opens a webpage containing ** html dropdown List(Select HTML Tag)**. Whenever I click on this dropdown list app got crashed.
This crash is happening on Samsung Tab Android Version 9.0 and It's working fine at Samsung Tab version 7.0, Google Pixel Mobile V9.0, Samsung Mobile device V7.0,V6.0 are also working fine. It's working fine with Tab Emulator version 8.0, 9.0 as well.
I did lots of research but no luck. There are many posts where people were facing the same issue in the past with Android Version 8.0 but there is no proper solution for the same.
Someone said that it's happening because we are passing ApplcationContext to the fragment(which contains Webview) and suggested to add tool:context with Activity context in XML but it didn't work.
Reference Link:- Trying to open SELECT tag in Android WebView crashes the application
Trying to open SELECT tag in Android WebView crashes the application
I didn't try it on any other brand devices(except Samsung) with the same version V9.0 but I think it's happening only Samsung Tab device version 9.0 as it's not crashing on Emulators with the same version and not even on mobile devices
So, I'm not sure why it's happening. Can some please look into it and provide a proper solution.
2019-09-27 12:56:56.508
13968-13968/****************************************pe
D/InputMethodManager: startInputInner - Id : 0 2019-09-27 12:56:56.508
13968-13968/****************************************pe
I/InputMethodManager: startInputInner -
mService.startInputOrWindowGainedFocus 2019-09-27 12:56:56.512
13968-13968/****************************************pe
D/InputTransport: Input channel constructed: fd=198 2019-09-27
12:56:56.513 13968-13968/****************************************pe
D/InputTransport: Input channel destroyed: fd=171 2019-09-27
12:56:56.665 13968-13968/****************************************pe
******: android.view.InflateException: Binary XML file line #32: Binary XML file line #32: Error inflating class TextView 2019-09-27
12:56:56.666 13968-13968/****************************************pe
******: Caused by: android.view.InflateException: Binary XML file line #32: Error inflating class TextView 2019-09-27 12:56:56.668 13968-13968/****************************************pe ******: Caused
by: android.content.res.Resources$NotFoundException: Unable to find
resource ID #0x20b019d 2019-09-27 12:56:56.669
13968-13968/****************************************pe ******: at
android.content.res.ResourcesImpl.getResourceEntryName(ResourcesImpl.java:291)
2019-09-27 12:56:56.699
13968-13968/****************************************pe ******: at
org.chromium.content.browser.input.SelectPopup.show(PG:40) 2019-09-27
12:56:56.699 13968-13968/****************************************pe
******: at android.os.MessageQueue.nativePollOnce(Native Method) 2019-09-27 12:56:56.699
13968-13968/****************************************pe ******: at
android.os.MessageQueue.next(MessageQueue.java:326) 2019-09-27
12:56:56.699 13968-13968/****************************************pe
******: at android.os.Looper.loop(Looper.java:181) 2019-09-27 12:56:56.700 13968-13968/****************************************pe
******: at android.app.ActivityThread.main(ActivityThread.java:7179) 2019-09-27
12:56:56.700 13968-13968/****************************************pe
******: at java.lang.reflect.Method.invoke(Native Method) 2019-09-27 12:56:56.700
13968-13968/****************************************pe ******: at
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
2019-09-27 12:56:56.701
13968-13968/****************************************pe ******: at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)
2019-09-27 12:56:56.725
13968-13968/****************************************pe A/chromium:
[FATAL:jni_android.cc(249)] Please include Java exception stack in
crash report