title: How to get an item from child in ExpandableListView?
body: <p>I have onChildClick method on my application, this my code</p>
  
  <pre><code>public class listview extends ExpandableListActivity {
  
   private static final String NAME = "NAME";
   private static final String IS_EVEN = "IS_EVEN";
   private ExpandableListAdapter mAdapter;
   List&lt;Map&lt;String, String&gt;&gt; groupData = new ArrayList&lt;Map&lt;String, String&gt;&gt;();
   List&lt;List&lt;Map&lt;String, String&gt;&gt;&gt; childData = new ArrayList&lt;List&lt;Map&lt;String, String&gt;&gt;&gt;();
   InputStream is;
   boolean addState = true;
   boolean addCountry;
   HashMap&lt;String, String&gt; countryMap = new HashMap&lt;String, String&gt;();
   HashMap&lt;String, String&gt; stateMap = new HashMap&lt;String, String&gt;();
   int count = 0;
   int count1 = -1;
   int count2 = 0;
   List&lt;String&gt; stateCount = new ArrayList&lt;String&gt;();
  
   @Override
   public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    // Reading data from text file to inout stream
    is = this.getResources().openRawResource(R.raw.countrystate);
    BufferedReader reader = new BufferedReader(new InputStreamReader(is));
    try {
     String line = "";
     while ((line = reader.readLine()) != null) {
      String[] strings = line.split("-");
      String ctry = strings[0].trim();
      String st = strings[1].trim();
      /*
       * loading country and state to two separate hash tables
       */
      if (countryMap.containsValue(ctry)) {
       addCountry = false;
       if (!addState) {
        stateMap.put("state" + count1 + count2, st);
        count2++;
       }
      } else {
       addCountry = !addCountry;
       count1++;
       //adding no. of states for a country to a list
       stateCount.add("" + count2);
       if (addCountry) {
        count2 = 0;
        countryMap.put("country" + count, ctry);
        stateMap.put("state" + count1 + count2, st);
        addState = false;
       }
       count2++;
       count++;
      }
     }
    } catch (Exception e) {
    }
    //re-arranging the state count list
    stateCount.add("" + count2);
    stateCount.remove(0);
    for (int i = 0; i &lt; countryMap.size(); i++) {
     Map&lt;String, String&gt; curGroupMap = new HashMap&lt;String, String&gt;();
     groupData.add(curGroupMap);
     String ctry = countryMap.get("country" + i);
     curGroupMap.put(NAME, ctry);
     curGroupMap.put(IS_EVEN, "Country " + i);
     List&lt;Map&lt;String, String&gt;&gt; children = new ArrayList&lt;Map&lt;String, String&gt;&gt;();
     int k = Integer.parseInt(stateCount.get(i));
     for (int j = 0; j &lt; k; j++) {
      Map&lt;String, String&gt; curChildMap = new HashMap&lt;String, String&gt;();
      children.add(curChildMap);
      curChildMap.put(NAME, stateMap.get("state" + i + j));
     // curChildMap.put(IS_EVEN, "State " + j);
     }
     childData.add(children);
    }
  
  
  
    // Set up our adapter
    mAdapter = new SimpleExpandableListAdapter(this, groupData,
      android.R.layout.simple_expandable_list_item_1, new String[] {
        NAME, IS_EVEN }, new int[] { android.R.id.text1,
        android.R.id.text2 }, childData,
      android.R.layout.simple_expandable_list_item_2, new String[] {
        NAME, IS_EVEN }, new int[] { android.R.id.text1,
        android.R.id.text2 });
    setListAdapter(mAdapter);
  
  
      }
    public boolean onChildClick (ExpandableListView parent, View v, int groupPosition,int childPosition,long id) {
          System.out.println("Inside onChildClick at groupPosition = " + groupPosition +" Child clicked at position " + childPosition+v.toString());
  
          return true;
  
   }
  
    public List&lt;List&lt;Map&lt;String, String&gt;&gt;&gt; getChildData() {
      return childData;
  }
  
  }
  </code></pre>
  
  <p>my onClick method</p>
  
  <pre><code>public boolean onChildClick (ExpandableListView parent, View v, int groupPosition,int childPosition,long id) {
          System.out.println("Inside onChildClick at groupPosition = " + groupPosition +" Child clicked at position " + childPosition+v.toString());
  
          return true;
  
   }
  </code></pre>
  
  <p>i want to get String if i clicked list child</p>
  
  <p>This my logcat:</p>
  
  <pre><code>07-18 11:40:54.334: INFO/System.out(1014): Inside onChildClick at groupPosition = 0 Child clicked at position 0android.widget.TwoLineListItem@405337c0
  07-18 11:40:56.714: DEBUG/dalvikvm(916): GC_EXPLICIT freed 14K, 53% free 2557K/5379K, external 884K/1038K, paused 111ms
  07-18 11:40:58.744: INFO/System.out(1014): Inside onChildClick at groupPosition = 0 Child clicked at position 0android.widget.TwoLineListItem@405337c0
  </code></pre>
  
  <p>I want to get String data not "TwoLineListItem@405337c0", anyone can help me?
  thanks</p>