Android Compatibility Lib + Google Maps Hack
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
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
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).
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.