0

I am using this code for load google map private GoogleMap myMap;

if(myMap!=null){
            myMap.setMyLocationEnabled(true);
            myMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
            marker = myMap.addMarker(new MarkerOptions().position(new LatLng(latitude, longitude)).title(getAddress(latitude, longitude)));
            Location = new LatLng(latitude, longitude);
            CameraPosition cameraPosition = new CameraPosition.Builder().target(Location).zoom(15) 
                    .bearing(90) // Sets the orientation of the camera to
                    .tilt(30) // Sets the tilt of the camera to 30 degrees
                    .build(); // Creates a CameraPosition from the builder
            // myMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));
            myMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude, longitude), 15));
            }

but map is not loading and occurring this issue

enter image description here

Android_coder
  • 9,953
  • 3
  • 17
  • 23

1 Answers1

1

You must install the latest Google play services in your phone/tab/emulator before running the app.

For google play on emulator.

Community
  • 1
  • 1
amalBit
  • 12,041
  • 6
  • 77
  • 94
  • Correct, this is installable via the Google Play store, provided the store is available on the tablet. – jim Sep 08 '14 at 10:30
  • @amalBit now i have installed google play service in my mobile. but google map is display empty screen. – Android_coder Sep 09 '14 at 04:56
  • Empty google map means that you have done every thing right and just a few things to check. 1. Do you have network?. 2. Your google API key might not be registered properly. – amalBit Sep 09 '14 at 05:46