我同时拥有protected void onCreate(Bundle savedInstanceState) {
//Set your theme before super.onCreate() to replace your previous theme of Manifest
setTheme(R.style.AppTheme);
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//TODO: add your MainActivity code here
webView = (WebView)findViewById(R.id.webview);
WebSettings webSettings = webView.getSettings();
webSettings.setJavaScriptEnabled(true);
//webSettings.setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW);
webSettings.setDomStorageEnabled(true);
webSettings.setDatabaseEnabled(true);
webSettings.setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);
webSettings.setAppCacheEnabled(true);
webSettings.setAllowFileAccess(true);
webView.setWebChromeClient(new WebChromeClient(){});
webView.setWebViewClient(new WebViewClient(){});
webView.loadUrl("https://www.myapp.app");
}
和http://foo.ddev.local
(两个不同的项目)
我可以使用http://bar.ddev.local
在主机上给他们打电话。现在,我希望curl
与foo
联系,但是如果我
bar