Re: [android-beginners] add view programmatically - crash

2010-07-12 Thread YuviDroid
Before using course_main you should initialize it: course_main = (LinearLayout) findViewById(R.id.course_main); On Mon, Jul 12, 2010 at 11:13 PM, theresia freska wrote: > Hello, > > I'm using Android API 8, AVD 2.2. I'm trying to add simple view > programmatically, but everytime I try to run it

Re: [android-beginners] add view programmatically - crash

2010-07-12 Thread Mark Murphy
On Mon, Jul 12, 2010 at 5:13 PM, theresia freska 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" but

[android-beginners] add view programmatically - crash

2010-07-12 Thread theresia freska
Hello, 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 an

[android-beginners] add view programmatically - crash

2010-07-12 Thread theresia freska
Hello, I am using Android API 8, AVD 2.2. I'm trying to add simple view programmatically -- 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/tagg