I have XML being parsed into a custom blogger class array, with this I am trying to show on screen a ChoiceGroup of the .name attribute of my blogger class.
for(int i = 0; i< intBloggerLength; i++)
{
menuItems[i] = myXMLParser.arrBloggers[i].getName();
//lstView.append(myXMLParser.arrBloggers[i].getName().toString(), null);
}
String strPause = "";
grpMenuItems = new ChoiceGroup("Bloggers", Choice.IMPLICIT, menuItems,
new Image[] {null, null, null, null, null, null});
"grpMenuItems =
..." is the line that is erroring, and making my MIDlet crash, I have been following examples online and I am populating the ChoiceGroup the same way, does anyone have any ideas?
The issue was me using a Choice.IMPLICIT
which does not exist for ChoiceGroup, but for List.
Changing for Choice.EXCLUSIVE
works fine.