thefinestartist / finestwebview-android Goto Github PK
View Code? Open in Web Editor NEWBeautiful and customizable Android Activity that shows web pages within an app.
Home Page: https://finestwebview.web.app
Beautiful and customizable Android Activity that shows web pages within an app.
Home Page: https://finestwebview.web.app
hello sir,
I saw no option to add splash screen while webview load, how can i add splash screen
Hi, I've been some days looking for methods in order to be able to download from the webview.
I have found a workaround based on WebClient
but I first need to be able to do webView.setWebViewClient();
Could you add this functionality soon please?
Thanks a lot!
EDIT: in fact I just need the shouldOverrideUrlLoading()
not the whole WebViewClient
I'm trying to develop this feature, in a couple of hours I'll send a pull request
crash log.
03-14 23:53:36.931 18043 18043 E AndroidRuntime: Caused by: java.lang.ClassCastException: android.graphics.drawable.VectorDrawable cannot be cast to android.support.graphics.drawable.VectorDrawableCompat
03-14 23:53:36.931 18043 18043 E AndroidRuntime: at com.thefinestartist.finestwebview.FinestWebViewActivity.updateIcon(FinestWebViewActivity.java:833)
03-14 23:53:36.931 18043 18043 E AndroidRuntime: at com.thefinestartist.finestwebview.FinestWebViewActivity.layoutViews(FinestWebViewActivity.java:469)
03-14 23:53:36.931 18043 18043 E AndroidRuntime: at com.thefinestartist.finestwebview.FinestWebViewActivity.onCreate(FinestWebViewActivity.java:859)
03-14 23:53:36.931 18043 18043 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6251)
03-14 23:53:36.931 18043 18043 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
03-14 23:53:36.931 18043 18043 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
please check this issue when pressing back button on chrome browser.
03-14 23:53:36.931 18043 18043 E AndroidRuntime: Caused by: java.lang.ClassCastException: android.graphics.drawable.VectorDrawable cannot be cast to android.support.graphics.drawable.VectorDrawableCompat
03-14 23:53:36.931 18043 18043 E AndroidRuntime: at com.thefinestartist.finestwebview.FinestWebViewActivity.updateIcon(FinestWebViewActivity.java:833)
03-14 23:53:36.931 18043 18043 E AndroidRuntime: at com.thefinestartist.finestwebview.FinestWebViewActivity.layoutViews(FinestWebViewActivity.java:469)
03-14 23:53:36.931 18043 18043 E AndroidRuntime: at com.thefinestartist.finestwebview.FinestWebViewActivity.onCreate(FinestWebViewActivity.java:859)
03-14 23:53:36.931 18043 18043 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6251)
03-14 23:53:36.931 18043 18043 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
03-14 23:53:36.931 18043 18043 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
Hi. I want to open pdf file link but it show blank page ? What should I do ?
Hi, thanks for the awesome library!
after calling .showUrl(false) it still shows the url below the title.
and another thing that I wanted to have was that when using this with a Rtl language, dropdown menu items have left gravity and I think it would be great if you implement this into the builder to set the items gravity so it will work with Rtl languages.
Which is the method that to disable the LongClickLinstener @TheFinestArtist
Just wondering where would I integrate Google Analytics event code on a webviewfragment system. To track page view?
THANKS!
i want to open my website in webview, how can i use finestwebview to open my website directly, and without cross button on title bar (which take me back to main activity layout)
is there anyway to add multiple window support?
Hi everyone,
I don't know if anyone more have received this error:
Fatal Exception: java.lang.OutOfMemoryError: Failed to allocate a 82956 byte allocation with 48202 free bytes and 47KB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(VMRuntime.java)
at android.graphics.Bitmap.nativeCopy(Bitmap.java)
at android.graphics.Bitmap.copy(Bitmap.java:680)
at com.thefinestartist.finestwebview.helpers.BitmapHelper.getColoredBitmap(BitmapHelper.java:31)
at com.thefinestartist.finestwebview.helpers.BitmapHelper.getColoredBitmap(BitmapHelper.java:38)
at com.thefinestartist.finestwebview.FinestWebViewActivity.updateIcon(FinestWebViewActivity.java:834)
at com.thefinestartist.finestwebview.FinestWebViewActivity.layoutViews(FinestWebViewActivity.java:461)
at com.thefinestartist.finestwebview.FinestWebViewActivity.onCreate(FinestWebViewActivity.java:853)
at android.app.Activity.performCreate(Activity.java:6289)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2655)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2767)
at android.app.ActivityThread.access$900(ActivityThread.java:177)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1449)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5951)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
This is the way I launching the web activity:
public static void openUrlEmbedded(Context context, String url, String title) {
FinestWebView.Builder builder;
builder = new FinestWebView.Builder(context)
.titleColor(Color.WHITE)
.urlColor(Color.WHITE)
.iconDefaultColor(Color.WHITE)
.showIconMenu(false)
.showIconForward(false)
.showIconBack(false)
.backPressToClose(false);
if (title != null) {
builder.titleDefault(title);
}
builder.show(url);
}
It is a pretty simple code.
I cannot say which url is throwing the error since the app is in production. If it really matters I could try to find out the url but I am not sure I could.
Thanks in advance.
Would you consider making a custom widget of the FinestWebView? That way, we can get the full control of the activity. I'm considering using this library, but i wont be able to add navigation drawer, other toolbar options, fragments, etc.
please support 'matket://' scheme
http://developer.android.com/intl/ko/distribute/tools/promote/linking.html
file uploading in kitkat 4.4 is not supported. this issue is there in original webview of android. if you could find a way in your library then it will be great.
But if you get time can you also give the option of FAB with speed dial.
refresh (@)
copy ( # )
Fab ( + )
I don't know whether it will look good or not! but you never know
How can I set download listener?
I want to listen for all the incoming downloads and start download in another activity by sending the url
Great work! But the horizontal scroll bar is not working for some website, like: http://andrewliu.in/2016/01/30/聊聊Redis的订阅发布/
The test should be done in the FinestWebView on Mobile Phone to let the scroll bar visible, cause the scroll bar is invisible for PC browser.
How to add video full screen mode
Hello
I've got an error with your library in API 16 :
I've managed to resolved it by editing the method updateIcon in the class FinestWebViewActivity.
Replace at line 853
Drawable drawable = ContextCompat.getDrawable(this, drawableRes); if (APILevel.require(21)) { VectorDrawable vectorDrawable = (VectorDrawable) drawable; vectorDrawable.setTintList(colorStateList); icon.setImageDrawable(vectorDrawable); } else { VectorDrawableCompat vectorDrawable = (VectorDrawableCompat) drawable; vectorDrawable.setTintList(colorStateList); icon.setImageDrawable(vectorDrawable); }
by
VectorDrawableCompat vectorDrawable = VectorDrawableCompat.create(getResources(), drawableRes, null); vectorDrawable.setTintList(colorStateList); icon.setImageDrawable(vectorDrawable);
Hope this helps
Hi, it would be useful if you could directly add code from the builder to the onPageFinished method of the webView. In my case I would need to inject some javascript and that way it would be really easy.
Thanks for the library man
Does it support html file rendering? If yes how?
I keep getting the following exception whenever i try to use: new FinestWebView.Builder(activity).show(url);
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.go.snoolabs/com.thefinestartist.finestwebview.FinestWebViewActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
at com.thefinestartist.finestwebview.helpers.BitmapHelper.getColoredBitmap(BitmapHelper.java:22)
at com.thefinestartist.finestwebview.helpers.BitmapHelper.getColoredBitmap(BitmapHelper.java:38)
at com.thefinestartist.finestwebview.FinestWebViewActivity.updateIcon(FinestWebViewActivity.java:809)
at com.thefinestartist.finestwebview.FinestWebViewActivity.layoutViews(FinestWebViewActivity.java:450)
at com.thefinestartist.finestwebview.FinestWebViewActivity.onCreate(FinestWebViewActivity.java:832)
at android.app.Activity.performCreate(Activity.java:6237)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
Conflicts with the support lib !
Please rename rippleColor to something else like _rippleColor !
Any help for this issue?
Please help,
Error:A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not find any matches for com.nineoldandroids:library:2.4.0+ as no versions of com.nineoldandroids:library are available.
Searched in the following locations:
https://jcenter.bintray.com/com/nineoldandroids/library/maven-metadata.xml
https://jcenter.bintray.com/com/nineoldandroids/library/
http://dl.bintray.com/icebergteam/maven/com/nineoldandroids/library/maven-metadata.xml
http://dl.bintray.com/icebergteam/maven/com/nineoldandroids/library/
file:/C:/sdk/extras/android/m2repository/com/nineoldandroids/library/maven-metadata.xml
file:/C:/sdk/extras/android/m2repository/com/nineoldandroids/library/
file:/C:/sdk/extras/google/m2repository/com/nineoldandroids/library/maven-metadata.xml
file:/C:/sdk/extras/google/m2repository/com/nineoldandroids/library/
Required by:
project:app:unspecified > com.thefinestartist:finestwebview:1.0.8
org.xmlpull.v1.XmlPullParserException: Binary XML file line #1<vector> tag requires viewportWidth > 0
04-06 23:23:26.076 16159-16159/com..aphone.zfjr E/VdcInflateDelegate: at android.support.graphics.drawable.VectorDrawableCompat.updateStateFromTypedArray(VectorDrawableCompat.java:535)
04-06 23:23:26.076 16159-16159/com..aphone.zfjr E/VdcInflateDelegate: at android.support.graphics.drawable.VectorDrawableCompat.inflate(VectorDrawableCompat.java:472)
04-06 23:23:26.076 16159-16159/com..aphone.zfjr E/VdcInflateDelegate: at android.support.graphics.drawable.VectorDrawableCompat.createFromXmlInner(VectorDrawableCompat.java:436)
04-06 23:23:26.076 16159-16159/com..aphone.zfjr E/VdcInflateDelegate: at android.support.v7.widget.AppCompatDrawableManager$VdcInflateDelegate.createFromXmlInner(AppCompatDrawableManager.java:851)
04-06 23:23:26.076 16159-16159/com..aphone.zfjr E/VdcInflateDelegate: at android.support.v7.widget.AppCompatDrawableManager.loadDrawableFromDelegates(AppCompatDrawableManager.java:320)
04-06 23:23:26.076 16159-16159/com..aphone.zfjr E/VdcInflateDelegate: at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:195)
04-06 23:23:26.076 16159-16159/com..aphone.zfjr E/VdcInflateDelegate: at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:190)
04-06 23:23:26.076 16159-16159/com..aphone.zfjr E/VdcInflateDelegate: at android.support.v7.widget.AppCompatImageHelper.loadFromAttributes(AppCompatImageHelper.java:49)
04-06 23:23:26.076 16159-16159/com..aphone.zfjr E/VdcInflateDelegate: at android.support.v7.widget.AppCompatImageButton.<init>(AppCompatImageButton.java:65)
04-06 23:23:26.076 16159-16159/com..aphone.zfjr E/VdcInflateDelegate: at android.support.v7.widget.AppCompatImageButton.<init>(AppCompatImageButton.java:53)
04-06 23:23:26.076 16159-16159/com..aphone.zfjr E/VdcInflateDelegate: at java.lang.reflect.Constructor.constructNative(Native Method)
04-06 23:23:26.076 16159-16159/com..aphone.zfjr E/VdcInflateDelegate: at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
04-06 23:23:26.076 16159-16159/com..aphone.zfjr E/VdcInflateDelegate: at android.view.LayoutInflater.createView(LayoutInflater.java:597)
04-06 23:23:26.076 16159-16159/com..aphone.zfjr E/VdcInflateDelegate: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:699)
04-06 23:23:26.076 16159-16159/com..aphone.zfjr E/VdcInflateDelegate: at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
04-06 23:23:26.076 16159-16159/com..aphone.zfjr E/VdcInflateDelegate: at android.view.LayoutInflater.rInflate(LayoutInflater.java:761)
04-06 23:23:26.076 16159-16159/com..aphone.zfjr E/VdcInflateDelegate: at android.view.LayoutInflater.parseInclude(LayoutInflater.java:842)
04-06 23:23:26.076 16159-16159/com."".aphone.zfjr E/VdcInflateDelegate: at android.view.LayoutInflater.rInflate(LayoutInflater.java:748)
04-06 23:23:26.076 16159-16159/com."".aphone.zfjr E/VdcInflateDelegate: at android.view.LayoutInflater.rInflate(LayoutInflater.java:761)
04-06 23:23:26.076 16159-16159/com."".aphone.zfjr E/VdcInflateDelegate: at android.view.LayoutInflater.rInflate(LayoutInflater.java:761)
04-06 23:23:26.076 16159-16159/com."".aphone.zfjr E/VdcInflateDelegate: at android.view.LayoutInflater.inflate(LayoutInflater.java:495)
04-06 23:23:26.076 16159-16159/com."".aphone.zfjr E/VdcInflateDelegate: at android.view.LayoutInflater.inflate(LayoutInflater.java:400)
04-06 23:23:26.076 16159-16159/com."".aphone.zfjr E/VdcInflateDelegate: at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
04-06 23:23:26.076 16159-16159/com."".aphone.zfjr E/VdcInflateDelegate: at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:276)
04-06 23:23:26.076 16159-16159/com."".aphone.zfjr E/VdcInflateDelegate: at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
04-06 23:23:26.076 16159-16159/com."".aphone.zfjr E/VdcInflateDelegate: at com.thefinestartist.finestwebview.FinestWebViewActivity.onCreate(FinestWebViewActivity.java:863)
04-06 23:23:26.076 16159-16159/com."".aphone.zfjr E/VdcInflateDelegate: at android.app.Activity.performCreate(Activity.java:5249)
04-06 23:23:26.076 16159-16159/com."".aphone.zfjr E/VdcInflateDelegate: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
04-06 23:23:26.076 16159-16159/com."".aphone.zfjr E/VdcInflateDelegate: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2165)
04-06 23:23:26.076 16159-16159/com."".aphone.zfjr E/VdcInflateDelegate: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2250)
04-06 23:23:26.076 16159-16159/com."".aphone.zfjr E/VdcInflateDelegate: at android.app.ActivityThread.access$900(ActivityThread.java:141)
04-06 23:23:26.076 16159-16159/com."".aphone.zfjr E/VdcInflateDelegate: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1213)
04-06 23:23:26.076 16159-16159/com."".aphone.zfjr E/VdcInflateDelegate: at android.os.Handler.dispatchMessage(Handler.java:102)
04-06 23:23:26.076 16159-16159/com..aphone.zfjr E/VdcInflateDelegate: at android.os.Looper.loop(Looper.java:136)
04-06 23:23:26.076 16159-16159/com..aphone.zfjr E/VdcInflateDelegate: at android.app.ActivityThread.main(ActivityThread.java:5072)
04-06 23:23:26.076 16159-16159/com..aphone.zfjr E/VdcInflateDelegate: at java.lang.reflect.Method.invokeNative(Native Method)
04-06 23:23:26.076 16159-16159/com..aphone.zfjr E/VdcInflateDelegate: at java.lang.reflect.Method.invoke(Method.java:515)
04-06 23:23:26.076 16159-16159/com..aphone.zfjr E/VdcInflateDelegate: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
04-06 23:23:26.076 16159-16159/com."".aphone.zfjr E/VdcInflateDelegate: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
04-06 23:23:26.076 16159-16159/com."".aphone.zfjr E/VdcInflateDelegate: at dalvik.system.NativeStart.main(Native Method)
Hi all, I am getting a Class cast exception when I try to open the activity.
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp.testapp/com.thefinestartist.finestwebview.FinestWebViewActivity}: java.lang.ClassCastException: android.graphics.drawable.BitmapDrawable cannot be cast to android.support.graphics.drawable.VectorDrawableCompat
It runs when I use the following code from within an activity:
//The Url privacy policy is just a standard web URL
new FinestWebView.Builder(this).show(Constants.URL_PRIVACY_POLICY);
Is there something wrong with how I structured the builder? Or is the issue simply with the unchecked image casting?
-PGMacDesign
(PS, running 4.4.2, Kitkat, on API level 19)
Using default WebView you can do this:
mWebView.setWebViewClient(new WebViewClient() {
public void onPageFinished(WebView view, String url) {
// do your stuff here
}
});
Can you also implement this in FinestWebView if it's possible?
Hi!
I use in the fragment:
new FinestWebViewActivity.Builder(getActivity()).show(author.getUrl_base());
error:
Cannot resolve symbol Builder
my web url shows login dialog when the url opens first, but i cant see it while using your library
There is a problem which happening to me is webpage is opened with lot of empty space below footer, this is not issue with website because i tested it on multiple sites same issue here is screenshot
there is more white space below the screenshot .
Same issue with finestwebview sample app, i think problem is webview height when we open a page with more height to small height the webview page height dont change
Thought I'd give this library a try, but for what I need it for, making requests via http POST/GET and opening a Browser with same cookies does not work. There should be a way to alter the cookie manager
Do you have any plans on adding tabs to this library?
로딩중에는 아래 리프레쉬 가 돌다가 멈추고 나면 화면이 깜빡 거립니다. 원인이 뭘까요?
안드로이드 공부하고 있는데 공부많이 했습니다. 감사합니다.
I'm pasting a link for adding find on page.
https://developer.chrome.com/multidevice/android/customtabs#configure-a custom menu
Maybe it can help you
Google Chrome app hide loading indicator even the website is not fully loaded. Loading indicator is kind of distracting too.
I use global context (for get resources, drawable), please add constructor with Context param. Thanks.
I have an issue in this library when i play any video and press home buttom the video will remain play on background this rejects my app from google play please help how can i fix it??
How do I dismiss the webview from it's webview listener?
Hello
This is nice webview library but the problem is that it always added as an activity.but i require to add webview as fragment because i am using custom html and javascript that need to be loaded .
and various different options are required . So i need to add it as fragment ..its very important and urgent for me .. SO can you please help me out ??
Thanks ..
03-09 17:00:23.638 18986-18986/com.muabannhanh E/ActivityThread: Activity com.thefinestartist.finestwebview.FinestWebViewActivity has leaked IntentReceiver android.widget.ZoomButtonsController$1@38d0c09f that was originally registered here. Are you missing a call to unregisterReceiver()?
android.app.IntentReceiverLeaked: Activity com.thefinestartist.finestwebview.FinestWebViewActivity has leaked IntentReceiver android.widget.ZoomButtonsController$1@38d0c09f that was originally registered here. Are you missing a call to unregisterReceiver()?
at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:901)
at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:702)
at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1701)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1681)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1675)
at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:495)
at android.widget.ZoomButtonsController.setVisible(ZoomButtonsController.java:387)
at org.chromium.android_webview.AwZoomControls.invokeZoomPicker(AwZoomControls.java:30)
at org.chromium.content.browser.ContentViewCore.onScrollBeginEventAck(ContentViewCore.java:1235)
at org.chromium.content.browser.ContentViewCore.nativeOnTouchEvent(Native Method)
at org.chromium.content.browser.ContentViewCore.onTouchEventImpl(ContentViewCore.java:1156)
at org.chromium.content.browser.ContentViewCore.onTouchEvent(ContentViewCore.java:1120)
at org.chromium.android_webview.AwContents$AwViewMethodsImpl.onTouchEvent(AwContents.java:2984)
at org.chromium.android_webview.AwContents.onTouchEvent(AwContents.java:2269)
at com.android.webview.chromium.WebViewChromium.onTouchEvent(WebViewChromium.java:1983)
at android.webkit.WebView.onTouchEvent(WebView.java:2299)
at android.view.View.dispatchTouchEvent(View.java:8388)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2424)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2158)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2430)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2172)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2430)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2172)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2430)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2172)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2430)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2172)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2430)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2172)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2430)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2172)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2430)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2172)
at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2314)
at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1692)
at android.app.Activity.dispatchTouchEvent(Activity.java:2781)
at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60)
at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60)
at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2275)
at android.view.View.dispatchPointerEvent(View.java:8578)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4021)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3887)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3449)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3502)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3468)
at android.view.ViewRootImpl$AsyncI
03-09 17:00:25.108 18986-18986/com.muabannhanh D/AndroidRuntime: Shutting down VM
03-09 17:00:25.108 18986-18986/com.muabannhanh E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.muabannhanh, PID: 18986
java.lang.IllegalArgumentException: Receiver not registered: android.widget.ZoomButtonsController$1@38d0c09f
at android.app.LoadedApk.forgetReceiverDispatcher(LoadedApk.java:763)
at android.app.ContextImpl.unregisterReceiver(ContextImpl.java:1724)
at android.content.ContextWrapper.unregisterReceiver(ContextWrapper.java:517)
at android.widget.ZoomButtonsController.setVisible(ZoomButtonsController.java:404)
at android.widget.ZoomButtonsController$2.handleMessage(ZoomButtonsController.java:178)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5257)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:921)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:716)
As explained in the title, when the page tries to create an AlertDialog as a selector when you click on a select element on the page, the application crashes. I did some digging and it is because at this line https://github.com/TheFinestArtist/FinestWebView-Android/blob/master/library/src/main/java/com/thefinestartist/finestwebview/FinestWebViewActivity.java#L406 you are using getApplicationContext()
which brings the application level Context. WebView then is not able to add windows to it. I simply replaced it with this
to refer the activity and the problem seems to be solved.
I'll post a PR if I have time.
Thanks.
In class com.thefinestartist.finestwebview.listeners.BroadCastManager,the handleIntent(Intent intent) method has not handle DOWNLOADED_START type.
I saw some browsers give "find on page" option to search text in web pages..
Is it possible to do it in WebView?
x(close) button touch -> error
android support library : 23.2.1 -> ok
android support library : 23.3.0 -> error
java.lang.IllegalStateException: Could not find a method onClick(View) in the activity class android.support.v7.widget.TintContextWrapper for onClick handler on view class android.support.v7.widget.AppCompatImageButton with id 'close'
at android.view.View$1.onClick(View.java:4237)
at android.view.View.performClick(View.java:5194)
at android.view.View$PerformClick.run(View.java:20903)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5942)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
Caused by: java.lang.NoSuchMethodException: onClick [class android.view.View]
at java.lang.Class.getMethod(Class.java:665)
at android.view.View$1.onClick(View.java:4230)
at android.view.View.performClick(View.java:5194)
at android.view.View$PerformClick.run(View.java:20903)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5942)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.