Re: [android-developers] multiple buttons + dialog box

2010-02-10 Thread Christoph Renner
Hi Andre I assume that buton 3-6 are in R.layout.poput_new and not R.layout.main, in that case you call findViewById on the activity which does not contain those buttons. You need to call findViewById on the dialog after you called setContentView. Try the following: in onCreate: remove the follo

[android-developers] multiple buttons + dialog box

2010-02-10 Thread André
Hello, I am trying to use 6 buttons in one activity. The first 2 buttons work, but the problem is the 4 other ones that are located in a dialog box. For the first two buttons I use "button1.setOnClickListener(this);" which is placed in the oncreate method. For the other 4 buttons I thought I could