2 Approaches on Google Maps not working

177 views Asked by At

I have tried two approaches to implement Google maps on android and both are not working.

1st Approach - I implemented maps using fragments (com.google.android.gms.maps.MapFragment). In this approach I get an error and the it asks me to UPDATE GOOGLE PLAY store.

2nd approach - I implemented maps using MapView (com.google.android.maps.MapView). I get a server 3 error in this approach and display shows me a blank grid.

I even generated a new api key, but it was of no use.

Thanks in advance

1

There are 1 answers

3
Shivang Trivedi On

you can use map v2 with :

        <fragment
        android:id="@+id/mapView"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        class="com.google.android.gms.maps.SupportMapFragment" />

with extends FragmentActivity

https://developers.google.com/maps/documentation/android/start

I went to the

Settings -> Software updates -> Check now

in Phone downloaded and installed some updates. This time when i clicked on

Get Google Play Services (In the application )

Market automatically got updated to Google Play.

Map is getting displayed properly.