On Mon, Jul 12, 2010 at 5:13 PM, theresia freska
<theresia.fre...@gmail.com> wrote:
> I'm using Android API 8, AVD 2.2. I'm trying to add simple view
> programmatically, but everytime I try to run it in the simulator, the
> app crashes. It gives me error msg "the app xxx has stopped
> unexpectedly" with the "force close" button. When I comment this code,
> the app works fine. Can anyone give me a hint on where I code wrong?

Nothing in the LogCat dump you provide is a Java stack trace
associated with your error. Errors are noted with the word "ERROR". In
DDMS, they are colored in red.

Your error, in this case, is that course_main is null, since you did
not assign any value to it.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to