Beginner Andriod (WebView)

OneillMOneillM USMember
edited March 2016 in Xamarin.Android

Hello everyone,

I'm currently at the end of developing my first android application and I ran into a little problem.
I have a layout that displays a Webview for a website and for some reason I cant find a way to,
save the credentials when a user goes to log into the web site. I've tried:

        mWebView1.Settings.SavePassword = true;
        mWebView1.Settings.SavePassword = true;

But that had no effect at all I even looked into using the CookieManager, but I couldn't find any,
information on how to use that either. Does anyone know a way that I can do this? Thank You.
The full code for this Layout called D2l is as follows:

namespace HartwickCollegeApp.Droid
{
    [Activity(Icon = "@drawable/Logo")]
        public class D2L : Activity
        {
            private WebView mWebView1;

            private WebClient mWebClient;

            protected override void OnCreate(Bundle bundle)
            {
                base.OnCreate(bundle);

                SetContentView(Resource.Layout.D2L);

                mWebClient = new WebClient();

                mWebView1 = FindViewById<WebView>(Resource.Id.webView1);

                mWebView1.Settings.JavaScriptEnabled = true;

                mWebView1.LoadUrl("https://d2l.hartwick.edu/");

                mWebView1.SetWebViewClient(mWebClient);           

            }
    }
}
Sign In or Register to comment.