I want to pass intents to the children (items) of expandable list view using switch case. How do i do that?
<p>CODE</p>

<pre><code>public class Treklist extends Activity {
        ExpandableListView treklist;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.treklist);
    treklist=(ExpandableListView)findViewById(R.id.expandableListView1);
    treklist.setAdapter(new MyAdapter(this));
    treklist.setOnChildClickListener(new OnChildClickListener() {

        public boolean onChildClick(ExpandableListView parent, View v,
                int groupPosition, int childPosition, long id) {
            // TODO Auto-generated method stub

            String childclicked=MyAdapter.childList[groupPosition][childPosition];


            return false;
        }
    });
}
</code></pre>

<p>My code structure is as given. Help me with a complete code. Thank you.</p>
