Sunday, August 29, 2010

ERROR/AndroidRuntime(295): Caused by: java.lang.IllegalArgumentException: MapViews can only be created inside instances of MapActivity.

Error:
ERROR/AndroidRuntime(295): Caused by: java.lang.IllegalArgumentException: MapViews can only be created inside instances of MapActivity.

Reason:
You get this error when you embed map view in your application but not extend MapActivity in your activity class.

Fix:
Extend your activity class to MapActivity.

No comments:

Post a Comment