Adding Google Play services version to your app’s manifest?

It is probably that your library is not linked to project properly or that you have older google-play-services library version so conflict appears and Eclipse got stupid.. :S No you don’t need to add anything in integers.xml. When you link properly Google-play-services library to your project reference android:value=”@integer/google_play_services_version” will be found and you are ready … Read more

moveCamera with CameraUpdateFactory.newLatLngBounds crashes

You can use simple newLatLngBounds method in OnCameraChangeListener. All will be working perfectly and you don’t need to calculate screen size. This event occurs after map size calculation (as I understand). Example: map.setOnCameraChangeListener(new OnCameraChangeListener() { @Override public void onCameraChange(CameraPosition arg0) { // Move camera. map.moveCamera(CameraUpdateFactory.newLatLngBounds(builder.build(), 10)); // Remove listener to prevent position reset on camera … Read more

Google Maps Android API v2 Authorization failure

Steps: to ensure that device has Google Play services APK to install Google Play Service rev. more than 2 to create project at https://code.google.com/apis/console/ to enable “Google Maps Android API v2” to register of SHA1 in project (NOW, YOU NEED WRITE SHA1;your.app.package.name) at APIs console and get API KEY to copy directory ANDROID_SDK_DIR/extras/google/google_play_services/libproject/google-play-services_lib to root … Read more

This app won’t run unless you update Google Play Services (via Bazaar)

UPDATE The Google maps API v2 is now installed on the latest Google system images (api:19 ARM or x86). So your application should just work with the new images. There is no need to install these files. I’ve been trying to run an Android Google Maps V2 application under an emulator and once I finally … Read more

How to download Google Play Services in an Android emulator?

Check out Setting Up Google Play Services which says: To develop an app using the Google Play services APIs, you need to set up your project with the Google Play services SDK. If you haven’t installed the Google Play services SDK yet, go get it now by following the guide to Adding SDK Packages. To … Read more

Custom marker in google maps in android with vector asset icon

You can use this method: private BitmapDescriptor bitmapDescriptorFromVector(Context context, int vectorResId) { Drawable vectorDrawable = ContextCompat.getDrawable(context, vectorResId); vectorDrawable.setBounds(0, 0, vectorDrawable.getIntrinsicWidth(), vectorDrawable.getIntrinsicHeight()); Bitmap bitmap = Bitmap.createBitmap(vectorDrawable.getIntrinsicWidth(), vectorDrawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); vectorDrawable.draw(canvas); return BitmapDescriptorFactory.fromBitmap(bitmap); } So your code will look like: map.addMarker(new MarkerOptions() .position(latLng) .icon(bitmapDescriptorFromVector(getActivity(), R.drawable.your_vector_asset)) .title(title); Edit: In Kotlin it may look like: … Read more

How to hide “Navigation” and “GPS Pointer” buttons when I click the marker on the android google map

For the button group you have outlined in red, you can disable it using the setMapToolbarEnabled() method in UISettings. From the documentation: Sets the preference for whether the Map Toolbar should be enabled or disabled. If enabled, users will see a bar with various context-dependent actions, including ‘open this map in the Google Maps app’ … Read more

Google Maps API v2: How to make markers clickable?

All markers in Google Android Maps Api v2 are clickable. You don’t need to set any additional properties to your marker. What you need to do – is to register marker click callback to your googleMap and handle click within callback: public class MarkerDemoActivity extends android.support.v4.app.FragmentActivity implements OnMarkerClickListener { private Marker myMarker; private void setUpMap() … Read more

AndroidRuntime: FATAL EXCEPTION: androidmapsapi-ZoomTableManager

Edit: following is the official solution from Google (link) Summary Google Maps SDK thread crashes App (ArrayIndexOutOfBoundsException) – Solution Offered Description On April 23 2020 starting at 11:30 PDT, Google served for 4 hours an update to the configuration of a Maps mobile component, triggering crashes in Maps SDKs for Android and iOS. Applications on … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)