I set up my WebView
to display the privacy policy of my application, but when it opens it appears that the web page is not available. See:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
WebView webView = (WebView) findViewById(R.id.wv_content);
webView.loadUrl("https://paivadeveloperpolitica.wordpress.com/2017/03/28/politica-de-privacidade/");
}
I have tried in several ways, taking out HTTOS, leaving only HTTP, only www. , but in no way worked.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white">
<WebView
android:id="@+id/wv_content"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</RelativeLayout>