how did you solved it? i have the same problem On Sunday, March 16, 2008 8:41:54 AM UTC+8, jtaylor wrote: > > Problem solved. Looks like I can't add <String, String> to map as a > parametized type. > > > - Juan > > On Mar 15, 7:18 pm, jtaylor <juan.anthony.tay...@gmail.com> wrote: > > This is my Code below. > > > > =============================== > > > > private static final String NAME = "NAME"; > > private static final String GO = "GO"; > > private ExpandableListAdapter expandAdapter; > > > > @Override > > protected void onCreate(Bundle icicle) { > > super.onCreate(icicle); > > > > List<Map<String, String>> groupData = new > ArrayList<Map<String, > > String>>(); > > List<List<Map<String, String>>> childData = new > > ArrayList<List<Map<String, String>>>(); > > > > // BEGIN groupData and childData processing > > for (int i = 0; i < 10; i++) { > > Map<String, String> basilMap = new > HashMap<String, String>(); > > basilMap.put(NAME, "group" + i); > > basilMap.put(GO, "go group" + i); > > groupData.add(basilMap); > > > > List<Map<String, String>> children = new > ArrayList<Map<String, > > String>>(); > > > > for (int j = 0; j < 5; j++) { > > Map<String, String> thymeMap = new > HashMap<String, String>(); > > thymeMap.put(NAME, "child" + i); > > thymeMap.put(GO, "go child" + i); > > children.add(thymeMap); > > } > > childData.add(children); > > } > > > > expandAdapter = new SimpleExpandableListAdapter > > ( > > this, > > groupData, > > android.R.layout.simple_expandable_list_item_2, > > new String[] {NAME, GO}, > > new int[] { android.R.id.text1, android.R.id.text2 }, > > childData, > > android.R.layout.simple_expandable_list_item_2, > > new String[] {NAME, GO}, > > new int[] { android.R.id.text1, android.R.id.text2 } > > ); > > setListAdapter(expandAdapter); > > > > } // end of onCreate > > > > On Mar 15, 7:11 pm, jtaylor <juan.anthony.tay...@gmail.com> wrote: > > > > > I'm getting the error below with no suggestions available. Which means > > > I'm at a dead end. > > > > > "The constructor SimpleExpandableListAdapter(.........) is undefined." > > > > > I am using the constructor with 9 parameters. Which should work like > > > ExpandableList3.java > > > > >http://code.google.com/android/samples/ApiDemos/src/com/google/androi... > > > > > > - Juan
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en