Reputation: 467
I created an xml file contains a webview.
I hope to load http://www.google.com in this webview
How can I do it?
Upvotes: 1
Views: 1157
Reputation: 12037
did you add permission for accessing Internet in your Manifest file as shown below,
<uses-permission android:name="android.permission.INTERNET" />
add the above line, before application tag beins
Upvotes: 1
Reputation: 200160
It's funny because the official example uses Google as the test page:
http://developer.android.com/resources/tutorials/views/hello-webview.html
Upvotes: 0