benadamx wrote:
> yey folks,
>
> wondering if anyone can provide a quick WebView example that
> successfully loads a page from the interweb; most of the examples I've
> found either contain code that isn't valid againt the latest version
> of the SDK, or that just outright doesn't work. here's what I have so
> far:
>
> public class SuperDoodad extends Activity {
>
> public void onCreate(Bundle icicle) {
>
> super.onCreate(icicle);
> WebView webview = new WebView(this);
> webview.loadUrl("http://www.stumbleupon.com");
> setContentView(webview);
>
> }
>
> }
Do you have the INTERNET permission in your AndroidManifest.xml file?
--
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.4 Published!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---