[mono-android] Returning back from an activity that calls a SetWebViewClient

Sayed Arian Kooshesh kooshesh at gmail.com
Sat Jun 16 00:57:17 UTC 2012


what do you mean by return. Return for result? Are you using
startactivityforresult?



On Fri, Jun 15, 2012 at 7:53 PM, nodoid <paul at all-the-johnsons.co.uk> wrote:

> Hi,
>
> Hi,
>
> I have a simple problem
>
> Activity A calls Activity B
>
> Activity B has a webview and looks like this
>
>            SetContentView(Resource.Layout.webView);
>            WebView webView = FindViewById<WebView>(Resource.Id.webView1);
>            webView.Settings.JavaScriptEnabled = true;
>            webView.LoadUrl(url);
>            webView.SetWebViewClient(new dealWithWebView());
>
> In dealWithWebView(), I have this
>
>    class dealWithWebView : WebViewClient
>    {
>        WebView webView;
>
>        public override void OnPageFinished(WebView view, string url)
>        {
>            webView = view;
>            Context c = webView.Context;
>            // it goes away and does something
>            // calls another method in the class which returns back here
>        }
>    }
>
> Problem is that I don't seem to be able to get it to return back from the
> WebViewClient and then from "B" return back to "A".
>
> How do I do this?
>
> Paul
>
> --
> View this message in context:
> http://mono-for-android.1047100.n5.nabble.com/Returning-back-from-an-activity-that-calls-a-SetWebViewClient-tp5710374.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>



-- 
Extreme Knowledge is not something for which he programs a computer but for
which his computer is programming him.

-Wozniak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120615/f26ac103/attachment-0001.html>


More information about the Monodroid mailing list