A port of the Android Compatibility package, revision 1 which makes FragmentActivity extend MapActivity. This is a hack to make it possible to use a MapView in a Fragment.
Pull request Compare This branch is 18 commits ahead, 209 commits behind petedoyle:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
src
.classpath
.gitignore
.project
README.md
build.xml

README.md

Android Compatibility Lib + Google Maps Hack

About

A port of the Android Compatibility package, revision 1 which makes FragmentActivity extend MapActivity. This is a hack to make it possible to use a MapView in a Fragment.

Building

You can build the jar (android-support-v4-googlemaps.jar) using Ant.

git clone git://github.com/petedoyle/android-support-v4-googlemaps.git
cd android-support-v4-googlemaps
ant

The default Ant target will build the jar and place it in the android-support-v4-googlemaps/build/jar folder.

Alternatively, the source also includes an Eclipse project which you can use to add it as a build dependency for your project. Import it into Eclipse using File > Import > Existing Projects into Workspace..., then configure the build path of your project to require the android-support-v4-googlemaps project.

Other changes

Besides making FragmentActivity extend MapActivity, the following has been changed from the original Android Compatibility Package r1:

  • Fix Issue 15394: Fragment.onActivityResult not called when requestCode != 0 (also see this android-developers thread).

Limitations

Currently, one downside is that ALL classes extending FragmentActivity are MapActivity's. Its possible to make a separate class (i.e. FragmentMapActivity), but it requires some refactoring of the FragmentActivity code.

Feel free to file a bug to request it or fork this project to fix it.