Start Activity from ItemizedOverlay class
<p>I'm trying to get a class extending ItemizedOverlay to startActivity but there is a problem, it just won't compile.
I have a MapView that uses the ItemizedOverlay class to draw overlays but i want to start and activity when i tap on the screen.</p>

<p>Any idea how to solve this problem? Thanks</p>

<pre><code>protected boolean onTap(int index) {
     OverlayItem item = overlays.get(index);

     String split_items = item.getSnippet();
     Intent intent = new Intent();
     intent.setClass(mainmenu,poiview.class);
     startActivity(intent);


     return true;
   }
</code></pre>
