Open Rbagman opened 8 years ago
This video shows what happens on my device when I try to replicate your problem. https://youtu.be/L5NS1l84Idg if you don't mind, what device and Android version are you using?
Yeah, that's not happening here. The image link option works.
Samsung (GT-N7100) Android 4.4.2
-----Original Message----- From: "Josiah Horton" notifications@github.com Sent: 8/19/2016 14:01 To: "JTechMe/JumpGo" JumpGo@noreply.github.com Cc: "Rbagman" mr.m.robinson@gmail.com; "Author" author@noreply.github.com Subject: Re: [JTechMe/JumpGo] Can't 'add a photo' on the Tumblr site. (#9)
This video shows what happens on my device when I try to replicate your problem. https://youtu.be/L5NS1l84Idg if you don't mind, what device and Android version are you using? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Hi! I actually had to address this problem myself recently. It is most probably caused by a missing interface method of the WebChromeClient. There are three to four different methods for Android 4.1/2, 4.4 and 5.0+.
4.1/2 is called protected void openFileChooser(ValueCallback<Uri[]> uploadMsg, String acceptType, String capture), 5.0+ has the signature public boolean onShowFileChooser(WebView webView, ValueCallback<Uri[]> filePathCallback, FileChooserParams fileChooserParams). I fixed the problem by having the one for 4.1/2 and 5.0+ in my WebChromeClient. Note that the first message appears to AndroidStudio as unused and can't have the @Override prefix for some reason.
I hope that helps you addressing the problem :)
When I press the 'add a photo' button nothing happens. It usually asks which app I want to use to select the image with. Javascript is enabled.