Android webview loading fail in API 21 and above
问题 I have an Android application that uses WebView and load a page. This application works on Android devices running API 16 or above . Android WebView Code: String URL = "https://sandbox.napas.com.vn/gateway/message"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_web_view); webview = (WebView) findViewById(R.id.webview); webview.getSettings().setJavaScriptEnabled(true); webview.getSettings().setAllowFileAccess