merlin2049er Well-Known Member Licensed User Longtime User Sep 25, 2015 #1 Is there a seamless way to jump out of the webview to a sharing menu within the android framework? Is that accomplished by using url override, or are there other methods?
Is there a seamless way to jump out of the webview to a sharing menu within the android framework? Is that accomplished by using url override, or are there other methods?
DonManfred Expert Licensed User Longtime User Sep 25, 2015 #2 If you have control over the showing website you could add a javascript interface to your webview and then you can call app methods from html code using the interface Upvote 0
If you have control over the showing website you could add a javascript interface to your webview and then you can call app methods from html code using the interface
merlin2049er Well-Known Member Licensed User Longtime User Sep 25, 2015 #3 Yes, basically. The app I'm working on insert gps co-ordinates into a url, and basically brings up the closes results. Any examples? something like this? http://stackoverflow.com/questions/10472839/using-javascript-in-android-webview Upvote 0
Yes, basically. The app I'm working on insert gps co-ordinates into a url, and basically brings up the closes results. Any examples? something like this? http://stackoverflow.com/questions/10472839/using-javascript-in-android-webview
merlin2049er Well-Known Member Licensed User Longtime User Sep 25, 2015 #4 Here's something too... http://developer.android.com/guide/webapps/webview.html#UsingJavaScript Upvote 0
walterf25 Expert Licensed User Longtime User Sep 25, 2015 #5 Look here, this should give you an idea! https://www.b4x.com/android/forum/threads/webviewextras.12453/#content Walter Upvote 0
Look here, this should give you an idea! https://www.b4x.com/android/forum/threads/webviewextras.12453/#content Walter
DonManfred Expert Licensed User Longtime User Sep 25, 2015 #6 DonManfred said: then you can call app methods from html code using the interface Click to expand... See the link @walterf25 provided Upvote 0
DonManfred said: then you can call app methods from html code using the interface Click to expand... See the link @walterf25 provided
merlin2049er Well-Known Member Licensed User Longtime User Sep 25, 2015 #7 Ok, but he's got to get his website right before I can do anything with those javascript hooks. Upvote 0
DonManfred Expert Licensed User Longtime User Sep 25, 2015 #8 As i wrote earlier... if YOU have control over the website... That means that you need to change the websitecode (html)to add the javascript code.... OR you inject a custom javascript to the site. Search the forum; @warwound has posted some examples about javascript injection Upvote 0
As i wrote earlier... if YOU have control over the website... That means that you need to change the websitecode (html)to add the javascript code.... OR you inject a custom javascript to the site. Search the forum; @warwound has posted some examples about javascript injection