我創建一個Xamarin的WebView爲ASP.NET MVC5應用程序,但是當我運行模擬器我面臨如下:ERR_Connection Refused
。你能解釋一下如何從Xamarin WebView中調用同一臺機器上的項目嗎?如何調用同一臺機器上自己的ASP.NET MVC項目preaent從xamrin的WebView
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
// Set our view from the "main" layout resource
SetContentView(Resource.Layout.Main);
web_view = FindViewById <WebView> (Resource.Id.webview);
web_view.Settings.JavaScriptEnabled = true;
web_view.LoadUrl("http://localhost:53183/");
}
替換後我變空白頁 – sajiii
您可以使用Android瀏覽器並打開您的網頁嗎? – SushiHangover
我再次面對Android瀏覽器的空白頁面.. – sajiii