I have never done anything with the browser but you have not
initialized that variable before you use it.
I changed it to this
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
browser = (WebView)findViewById(R.layout.webkitview);
browser.getSettings().setJavaScriptEnabled(true);
browser.loadUrl("http://www.fastpitch.com");
}
and changed the layout to:
<WebView android:id="@+layout/webkitview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
On Jan 31, 11:14 pm, "Kevin J. Brooks" <[email protected]>
wrote:
> Hey Everyone,
>
> I finally have my application building without errors, but when I run it
> in the emulator it stops unexpectedly. I am attaching the complete
> project. Can someone help?
>
> Kevin
>
> FastPitch.zip
> 33KViewDownload
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---