22 Votes

Android: WebView does not display external web pages

Question by Guest | Last update on 2026-10-12 | Created on 2016-10-08

I have just created my first own Android App and among other things, I am using a WebView therein to be able to show some HTML pages.

As long as I am delivering those webpages together with my App, it is working as expected. However, it is not possible to display or follow any link for showing a real website on the Internet.

What am I doing wrong? Actually I thought that this WebView is exactly made for this purpose.

ReplyPositiveNegative
2Best Answer2 Votes

You probably haven't given your app permission to access the internet yet.

Just add the following permission to your manifest:

<uses-permission android:name="android.permission.INTERNET" />

With this it should work.
Last update on 2026-10-12 | Created on 2016-10-09

ReplyPositive Negative
Reply

Related Topics

Android Splash Screen Tutorial

Tutorial | 0 Comments

Android Getting Sound Levels

Open Question | 1 Answer

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.

Participate

Ask your own question or write your own article on askingbox.com. That’s how it’s done.