Re: [mono-android] Using webView.AddJavascriptInterface with MonoDroid

2012-08-12 Thread Robert Jordan
On 10.08.2012 07:05, Craig Dunn wrote: there's a recipe with code for that - so it should definitely work Unfortunately, Android's Javascript bridge doesn't work on Gingerbread (60% market share) due to this bug: http://code.google.com/p/android/issues/detail?id=12987 Robert ___

Re: [mono-android] Using webView.AddJavascriptInterface with MonoDroid

2012-08-10 Thread Jonathan Pryor
On Aug 10, 2012, at 1:05 AM, Craig Dunn wrote: > there's a recipe with code for that - so it should definitely work > http://docs.xamarin.com/android/recipes/Controls/WebView/Call_C%23_from_JavaScript > (which also links to > http://stackoverflow.com/questions/9745168/monodroid-javascript-call-ba

Re: [mono-android] Using webView.AddJavascriptInterface with MonoDroid

2012-08-10 Thread Jonathan Pryor
On Aug 3, 2012, at 6:53 AM, jose medrano wrote: > MONODROID CODE # > > protected override void OnCreate(Bundle bundle) > { >[...] >LinearLayout layout = > FindViewById(Resource.Id.MyLayout); >var webView = new WebView(this); >webView.SetWebChromeClient(new

Re: [mono-android] Using webView.AddJavascriptInterface with MonoDroid

2012-08-09 Thread Craig Dunn
there's a recipe with code for that - so it should definitely work http://docs.xamarin.com/android/recipes/Controls/WebView/Call_C%23_from_JavaScript (which also links to http://stackoverflow.com/questions/9745168/monodroid-javascript-call-back/9746911) i haven't compared your code closely with th

[mono-android] Using webView.AddJavascriptInterface with MonoDroid

2012-08-09 Thread jose medrano
MONODROID CODE # protected override void OnCreate(Bundle bundle) { [...] LinearLayout layout = FindViewById(Resource.Id.MyLayout); var webView = new WebView(this); webView.SetWebChromeClient(new WebChromeClient()); webView.Settings.JavaScriptEnabled