[android-developers] Re: CheckBox test= (CheckBox) findViewById(R.id.test); returns null

2009-03-18 Thread zeeshan
Thanks, this solved it On Mar 17, 11:24 pm, Glen Humphrey glendon.humphr...@gmail.com wrote: I believe your xml should look like this with android:id instead of just id. CheckBox android:id=@+id/checkbox android:layout_width=wrap_content android:layout_height=wrap_content / On Mar 17,

[android-developers] Re: CheckBox test= (CheckBox) findViewById(R.id.test); returns null

2009-03-17 Thread dan raaka
Try changing the id and see if it makes any difference. -Dan On Tue, Mar 17, 2009 at 9:46 AM, zeeshan genx...@gmail.com wrote: Hi Android Experts, why CheckBox is always null. please find the error in my code: xml- CheckBox id=@+id/checkbox android:layout_width=wrap_content

[android-developers] Re: CheckBox test= (CheckBox) findViewById(R.id.test); returns null

2009-03-17 Thread Glen Humphrey
I believe your xml should look like this with android:id instead of just id. CheckBox android:id=@+id/checkbox android:layout_width=wrap_content android:layout_height=wrap_content / On Mar 17, 10:25 am, zeeshan genx...@gmail.com wrote: i changed the id but still same Null object. same result