Search code examples
androidandroid-mapviewgoogle-maps-api-2

Using MapFragment with min sdk-8


I wish to use google maps in my app. For that, I am using MapFragment. MapFragment requires minimum sdk version 11. But I wish to have minimum sdk version as 8 so that my app works for Android 2.2 and above. When I use MapView I do not get the map. I just get the grids in the map. How do I resolve this? Need Help.


Solution

  • Instead of Map Fragment use SupportMapFragment

    Read here

    and Refer this SO answer . As Jeo Malin said dont use MapView It is deprecated. Use MapV2

    Study here .