title: Android: startActivity() from AlertDialog
body: <p>I am trying to use a Button in an AlertDialog to view a webpage.</p>
  
  <p>The problem is that this AlertDialog is located inside a class that extends ItemizedOverlay and doesn't extend Activity, so Eclipse underlines it and gives the following error:</p>
  
  <blockquote>
    <p>The method startActivity() is undefined for the type new DialogInterface.OnClickListener(){}</p>
  </blockquote>
  
  <p>I would like to launch activities from the PositiveButton, NeutralButton and NegativeButton, but I am not able to.</p>
  
  <p>In case you need more context, the main Activity is a MapView with some ItemizedOverlay, and I would like to launch a webpage with directions or another activity that does that.</p>