I have a bad experience with webview that does not load the webpage I am requesting.
I cannot load Google or any other webview page. I added xml:
<WebView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webview"
android:layout_marginLeft="250px"
android:layout_marginTop="80px"
android:layout_width="180px"
android:layout_height="160dip"
/>
Then I insert the code:
mWebView = (WebView) findViewById(R.id.webview);
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.loadUrl("http://www.google.com");
This indicates that the webpage is not available.
I also added manifest permission.
I have another action in this application that loads youtube url with:
startActivity(new Intent( Intent.ACTION_VIEW,
Uri.parse("http://www.youtube.com/watch?v=XS998HaGk9M")));
I am not sure if this may be and really needs advice on this, as I need to get it to work.
thank
Edit: I also cannot access any webpage in the emulator itself. When you search in the search bar in the emulator, it says the same thing when connected to Google.
I'm not sure why this will be related to youtube with intent, not web browsing
: youtube, , . , , . - , . , , , .
: , , , youtube , . webview. : (