Tag: google-maps

error: cannot find symbol method getMap() after dependencies update

After I updated my dependencies my getMap() won’t work. (it used to work just fine before update) Here is the line of codes i get error GoogleMap map = ((MapView) mRootView.findViewById(R.id.fragment_map_mapview)).getMap(); Location locationNet = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER); Location locationGps = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER); The grandle code dependencies { compile ‘com.android.support:support-v4:24.0.0’ compile ‘com.android.support:appcompat-v7:24.0.0’ compile ‘com.android.support:cardview-v7:24.0.0’ compile ‘com.android.support:recyclerview-v7:24.0.0’ //compile ‘com.google.android.gms:play-services:7.3.0’ compile […]

Android : Providing auto autosuggestion in android places Api?

I am very new to android Google maps i write the following program for displaying the auto sugesstion in the android when i am type the text in the Autocomplete text box it is going the input to the url but the out put is not showing in the program .please see once and let […]

Android animateCamera GoogleMap.CancelableCallback Usage

im totally stumped how to use the callback feature of “animateCamera” in android sdk. i want to use the onFinish feature, thankyou. public final void animateCamera (CameraUpdate update, GoogleMap.CancelableCallback callback) http://developer.android.com/reference/com/google/android/gms/maps/GoogleMap.html#animateCamera%28com.google.android.gms.maps.CameraUpdate,%20com.google.android.gms.maps.GoogleMap.CancelableCallback%29 http://developer.android.com/reference/com/google/android/gms/maps/GoogleMap.CancelableCallback.html

Find route with Androids Google Maps API

I want to be able to display the route between two user-defined geographical points using the Google Maps API for Android. I also want to be able to let the user choose what type of route to display, whether it be walking, cycling, car etc. Additionally, I want to be able to calculate the time […]

google map api v2, and older version of google play services lib

I am going to use maps in my android application and I should use google play services. I read lots of q\a here like this. In the mentioned question, the accepted answers suggets using older version of google play services lib, like the one for Froyo. I downloaded google play services r10 and used it […]

Google Maps API v2: How to make markers non-clickable?

I mean if i click marker OnMarkerClickListener is called, so the OnMapClickListener did not. Even if i set mMap.setOnMarkerClickListener(null); marker object still masks all click events for underlying map and objects. How can i set Marker transparent for all user interractions?

Android, draw route on google map

In my android project I want to draw route on Google maps. I have coordinates of start and end points. On this points I get km-file from Google web service with points witch across route. For drawing parts of route I use instances of Overlay class. And this solution works, but very slowly. Are there […]

Add Google Maps API v2 in Mono for Android

Google Maps API v2 for Android released on 3th December. Is there any possibility to add it into Mono for Android?

Displaying multiple routes using Directions API in Android

I am using this class to display a route on a map. The problem is that it only displays one route. What I want to do is display multiple alternate routes on the map. Even thought the server response has multiple routes, it only parses the first route and displays it. What changes should I […]

adding multiple marker on google map in android

I am triyng to add multiple marker on google map. Here is my code section public class GoogleMap extends MapView { MapController mc; MapView mapView; GeoPoint p; @Override public void onCreate(Bundle savedInstanceState) { …. double lat = Double.parseDouble(bundle.getString(“paramLat”)); double lng = Double.parseDouble(bundle.getString(“paramLong”)); mc = mapView.getController(); p = new GeoPoint( (int) (lat * 1E6), (int) (lng […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.