title: How to add child dynamically into particular group in expandableListview?
body: <pre><code>alertDialogBuilder.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
  
                          @Override
                          public void onClick(
                                  DialogInterface dialog,
                                  int which) {
  
                              try {
                                 expenses = editText.getText().toString();
  
                                  int a = (int)getGroupId(groupPosition);
                                  Log.e("group id",String.valueOf(a));
  
                                 obj.prepareListData(expenses,(int) getGroupId(groupPosition));
  
                              } catch (Exception e) {
                                  Log.e("123", e.toString());
                              }
  
                          }
                      });
  
  public void prepareListData(String s, int position) {
  
     List&lt;String&gt;  expenses = new ArrayList&lt;String&gt;();
  
      expenses.add(s);
  
      listDataChild.put(listDataHeader.get(position), expenses);
      listAdapter = new ExpandableListAdapter(this, listDataHeader, listDataChild);
  
  }
  </code></pre>
  
  <p>Here i want to add different expenses into different group(header) but expenses gets overwrite to previous one into header.</p>
  
  <p>How can i add different multiple values into different group(header)? please guide me.</p>