Issue
My MainActivity extends SherlockActivity to implement the Actionbar on devices with lower Android versions.
I want to show a little MapView in the MainActivity, but apparently I need my MainActivity to extend MapActivity:
E/AndroidRuntime(2955): Caused by: java.lang.IllegalArgumentException: MapViews can only be created inside instances of MapActivity.
The MapView is inflated from an xml file.
How would I do this?
Solution
You would install the maps add-on for ActionBarSherlock and use it, presumably. See the "Google Maps" portion of http://actionbarsherlock.com/download.html.
Answered By - CommonsWare
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.