On Thu, Jan 20, 2011 at 1:45 PM, kiros88 <[email protected]> wrote: > When i check log cat i basically get a saying that null pointer exception > with the line of code about addView so im not sure if its placed in a bad > spot because its in a overide function getView >
Use your debugger to step through the code or use logging to determine what at that point is null. Then make it so it's not null. > I'm just trying to find a way to dynamically add radiobuttons to > a radiogroup without using a scrollView so my idea is to use a ListView but > I'm open to any new suggestions that just follow a criteria of have a list > of radiobuttons that are dynamically defined and all stay in one radio group > You do not need a scroll view or list view for this. A RadioGroup is a ViewGroup, which can hold children. You can shove in as many RadioButtons as you want, and they will all be in that group. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en

