title: Use of Intent in onChildClickListener cannot find method
body: <p>I have a listView with sublistView items where i referred to <a href="http://www.vogella.com/tutorials/AndroidListView/article.html" rel="nofollow">Using lists in Android</a> (15.2. ExpandableListView example).</p>
  
  <p>I am able to get click for each list item by Toast and display.</p>
  
  <pre><code>convertView.setOnClickListener(new OnClickListener() {
    @Override
    public void onClick(View v) {
      Toast.makeText(activity, children,
          Toast.LENGTH_SHORT).show();
    }
  </code></pre>
  
  <p>But when i want to use Intent in childClick, i receive an error: <code>cannot find symbol method startActivity(Intent)</code>.</p>
  
  <p>Below is my class:</p>
  
  <pre><code>public class MyExpandableListAdapter extends BaseExpandableListAdapter {
  //Some sort of class code in here...
  
  @Override
  public View getChildView(int groupPosition, final int childPosition,
  boolean isLastChild, View convertView, ViewGroup parent) {
  
  final String children = (String) getChild(groupPosition, childPosition);
  TextView text = null;
  
  if (convertView == null) {
    convertView = inflater.inflate(R.layout.listrow_details, null);
  }
  text = (TextView) convertView.findViewById(R.id.textView1);
  text.setText(children);
  
  convertView.setOnClickListener(new OnClickListener() {
  
    @Override
    public void onClick(View v) {
          //11 group position exist, each has 5 child
          switch ((groupPosition)){
          case 0:
          if (childPosition == 0) {
  
              Intent intent = new Intent(Intent.ACTION_VIEW);
              intent.setData(Uri.parse("market://details?id=editors_choice"));
              startActivity(intent); //cannot find symbol method startActivity(Intent)
  
  
          } else if (childPosition == 1) {
              Toast.makeText(activity, "2",
                      Toast.LENGTH_SHORT).show();
  
          } else if (childPosition == 2) {
              Toast.makeText(activity, "3",
                      Toast.LENGTH_SHORT).show();
  
  
          } else if (childPosition == 3) {
              Toast.makeText(activity, "4",
                      Toast.LENGTH_SHORT).show();
  
          } else if (childPosition == 4) {
              Toast.makeText(activity, "5",
                      Toast.LENGTH_SHORT).show();
  
          }
          break;
  
          case 1:
          ...
    }
  });
  return convertView;
    }
   }
  </code></pre>
  
  <p>Thank you for helps.</p>