Showing google maps on a dialog
<p>I have an activity that extends MapActivity.
I want to show map inside a dialog in this activity.
i.e when I click a button it will show a dialog with a mapview, but this crashes because it is howing this exception</p>

<pre><code>Caused by: java.lang.IllegalArgumentException: MapViews can only be created inside instances of MapActivity.
</code></pre>

<p>Please help me.</p>
