Questions tagged [google-maps-android-api-2]

Google Android Maps Api v2 is the next generation of Google Maps SDK available for Android developers.

Related tags:

Useful links:

3484 questions
1
vote
1 answer

Show City/Road/State/Country Label in satellite viewGoogle Map V2 Android

Hello I am using Google Maps API v2 for displaying the maps in android. Now I want to display Place labels in the satellite view. like SATUN , PERLIS etc... Though In the normal map view it is showing. Anybody know how to achieve that in satellite…
Kishan Dhamat
  • 3,746
  • 2
  • 26
  • 36
1
vote
2 answers

AutoCompleteTextView is not getting the suggestions from Google Places API

This is my code to get the Places suggestions from Google Places API. But it is showing some error like "Cannot connect to Google Places API". I have given the proper error which I am getting at the bottom of this code. I just need an…
1
vote
5 answers

Find out if a location is within a shape drawn with polygon on Google Maps v2

If I draw a shape with polygon on Google Maps v2, is there a way to find out if my current location is inside the shape? please write me a clear code thanks
ali
  • 21
  • 1
  • 4
1
vote
0 answers

Google Places API: PlaceID from 'nearBySearch' doesn't appear at 'GeoDataApi.getPlaceById'

I posted about it an issue https://code.google.com/p/gmaps-api-issues/issues/detail?id=8387&thanks=8387&ts=1437921771 But still I want to know if anybody faced this and know the solution for this... First I'm using nearBySearch http web service to…
1
vote
2 answers

I updated an App but its failed. Missing type parameter in ProGuard

I updated an application that had almost the same code, in the previously version I didn't have problems in proguard. When I launch the app since AndroidStudio I don't have problems, but When I launch a signed app in some parts of the app can show…
1
vote
1 answer

Android - How can I achieve this Google Maps animation?

This is how I'm currently using my google map; mapFragment = ((SupportMapFragment) getChildFragmentManager() .findFragmentById(R.id.map)).getMap(); mapFragment.setMyLocationEnabled(true); …
1
vote
2 answers

Null pointer exception in fragment, using google maps

I received a null pointer exception when getting android google maps in a fragment. The error is at the line findFragmentById.I tried using if (mMap != null) and it indicates that the map is still null. What can I do to resolve this? In…
1
vote
1 answer

Refresh polyline and markers without flickering

Can someone help me with this idea ? I need to refresh array of locations (markers on map) and polyline represent a route between exact markers. I am doing it now with clear and draw new items, but it flickering markers and polyline. Polyline…
Tomino
  • 113
  • 2
  • 14
1
vote
1 answer

Drawing path between two markers Google Maps V2

I have two markers, namely startLocation and the other is stopLocation. startLocation will detect the user's current location, and then the user will walk, and when they stop they'll press stop and stopLocation will be captured as their new current…
1
vote
2 answers

Android ACCESS_FINE_LOCATION permission not being granted or something?

AI have made a simple app that displays a marker at user's current location and I have used all permissions in the manifest. Here is the code: public class LocationActivity extends FragmentActivity implements LocationListener { SupportMapFragment…
Neeraj Verma
  • 703
  • 6
  • 15
1
vote
1 answer

java.lang.NoClassDefFoundError: com.google.android.gms.maps.model.LatLng even after adding google-play-services_lib as a library project

I am trying to implement Google Maps in android, but whenever I run the app on the emulator it gives me the following Error: 06-25 02:21:52.890: E/AndroidRuntime(931): FATAL EXCEPTION: main 06-25 02:21:52.890: E/AndroidRuntime(931):…
1
vote
1 answer

Map marker info window without small triangle at bottom

I need to show an Infowindow of a Google map marker without the small triangle at the bottom. Please check the image which I have attached. I tried by setting by changing setInfoWindowAnchor but it didn't work. Can anyone help me on…
1
vote
2 answers

Google Maps API - Hyperlink in Map Infoview not opening native GoogleMaps

I am developing a GoogleMap Map with a custom InfoView. In my InfoView, I want a hyperlink opening the native GoogleMap application with my longitude and latitude on Click. I've tried by using the Common Intents API Guide and creating a hyperlink…
1
vote
2 answers

Why Does Map Marker Lurch Around The Map

I'm in Android Studio and I have a map fragment (com.google.android.gms.maps.SupportMapFragment) that has two markers. One is static and called Target. The other tracks my movements and is called Hunter. It works but the problem is that the Hunter…
user1091524
  • 865
  • 1
  • 15
  • 28
1
vote
0 answers

How to use GoogleMap using MapView with Singleton approach?

I am trying to use MapView with singleton approach. Here I create MapView once and does its mapViewSingletonInstance.onCreate(savedInstance) only one time. After this I try to use it doing anotherMapViewObject.addView(mapViewSingletonInstance) But…
Devavrata
  • 301
  • 1
  • 3
  • 12
1 2 3
99
100