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
Caused by: java.lang.IllegalArgumentException: MapViews can only be created inside instances of MapActivity.
Please help me.
You can create a
MapActivityand set its theme likeDialog