我正在尝试将用户代理字符串放入xamarin android中的webview 它是可行的,但是在某种程度上User-Angent没有设置 我尝试删除Cookie,但仍未设置
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
SetContentView(Resource.Layout.TwitterForm);
_webview = FindViewById<WebView>(Resource.Id.webView1);
txt55 = FindViewById<TextView>(Resource.Id.txt55);
_webview.Settings.UserAgentString = "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; yie11; rv:11.0) like Gecko";
_webview.Settings.JavaScriptEnabled = true;
_webview.LoadUrl("https://mobile.twitter.com/login");
_webview.Settings.LoadWithOverviewMode = true;
_webview.SetWebViewClient(new HelloWebViewClient());
}