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

Sayed Arian Kooshesh kooshesh at gmail.com
Sat Jun 16 01:44:24 UTC 2012


hey paul, if you tell andrew to apologize now... I'll help ya. I'll send
you a video of how I did it in that project we were working on together.

On Fri, Jun 15, 2012 at 8:40 PM, Sayed Arian Kooshesh <kooshesh at gmail.com>wrote:

> http://screencast.com/t/woonahzknxz
>
> 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
>



-- 
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/efe1a7b8/attachment.html>


More information about the Monodroid mailing list