When I show a url that has a security certificate (https://), the view stays blank, but the ones that do not have a security certificate load without problem (http://).
Below is the code that shows the view of the page with security certificate, I use a webView container.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View v = inflater.inflate(R.layout.fragment_noticias, container, false);
WebView view=(WebView) v.findViewById(R.id.wv_noticias);
view.getSettings().setJavaScriptEnabled(true);
view.setWebViewClient(new WebViewClient());// Agregamos un WebViewCliente, esto permite que se sigan ejecutando los links dentro de este WebView
//view.loadUrl(url);
/****************************************/
if (isOnline(getActivity())) {
String url="https://www.uniagustiniana.edu.co/Noticias/";
view.loadUrl(url);
//Toast.makeText(getActivity(),"SI hay conexión!",Toast.LENGTH_SHORT).show();
} else {
view.loadUrl("file:///android_asset/html/pagina_error.html");
Toast.makeText(getActivity(),"NO hay
conexión!",Toast.LENGTH_SHORT).show();
}
/****************************************/
return v;
}