Tuesday, August 30, 2011

[android-developers] MapView in Fragment using compat library

Some months back, someone posted a hack to the compatibility library
to get a MapView to display in a fragment (see posts by @Streets of
Boston): http://groups.google.com/group/android-developers/browse_frm/thread/b705bbd72d28d000/df84933c3a460c71?pli=1

Indeed this does display the mapview in the fragment but when I
replace it with another fragment and then replace that one with the
map fragment again, I get the dreaded "You are only allowed to have a
single MapView in a MapActivity".

Has anyone gotten this to work ?

Diane & the Google team, can you give us an official fix for this;
it's really a problem for people building apps using fragments.

Thanks

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment