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
3 answers

A simple android application using Google Maps API V2 occurs error

I'm developing an android application using Google Maps API v2. I've selected the template activity "Google Maps Activity" in Android Studio 2.2. When I run this template, it throws com.android.dex.DexIndexOverflowException: method ID not in [0,…
Sora
  • 21
  • 1
1
vote
1 answer

null pointer exception on addmarker and markeroptions on googleMap

I get nullpointerException when trying to load google map on our app as below.also The java class extends from AppCompatActivtyand inside intialiseMap() we try to getMap() D/Profileactivity: java.lang.NullPointerException: Attempt to invoke virtual…
1
vote
3 answers

NullPointerException When Trying to place Marker on Google Map V2

when I try to place Marker on google map with placeMarker method I get NullPointerException NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object…
1
vote
1 answer

Why use different Google API's keys in project?

I'm working on Android application using Google Maps APIs that other person created. Project have different modules like client, client_developer, client_preproduction etc. but they all share core code in other module. I can't understand why in…
1
vote
0 answers

My-location layer and location from Location listener differ

For google maps I have set option setMyLocationEnabled(true) and it draws my location on map, but the location I get from LocationListener is different. The marker I add from onLocationChange(Location location) and the my-location (the blue dot) are…
pepela
  • 423
  • 5
  • 17
1
vote
1 answer

Retrofit response method parsing JSON from google map api doesn't work

The loop inside the retrofitResponse method does not loops which it was suppose to do. It was suppose to fetch json data from google map url. package com.webstarts.byteglory.shomadhan; import android.*; import android.content.Intent; import…
1
vote
1 answer

What is the difference b/w animateCamera and moveCamera in google V2 maps?

Hi guys while doing a sample project on android v2 maps for setting the current location. I came across couple of lines //what does this line do? mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng)); //this line will animate to the provided lat…
Swapnil Kadam
  • 4,075
  • 5
  • 29
  • 35
1
vote
1 answer

Show current location in google map programmatically android

I can get current location manually but I want to get it programmatically in android app. I am using LocationListener and LocationManager but I am not getting current location on map. My code is given below, anybody can guide me how can I do…
1
vote
0 answers

google map android - factors affecting battery use with location tracking

I have a service which tracks the user's location all the time (as long as its running) and puts the data into a SQL table, and when the app is in the foreground -> the service also sends updates to the UI with the location and the map and location…
1
vote
0 answers

Android - User tracking google map?

I am using the GPS from android for tracker the user position by draw points in a map. The problem is the register of the points is inaccurate. For example, when I see my points on the maps, it's look like this : But I moved like below : How can I…
1
vote
0 answers

Android: Customize map toolbar

I'm developing an App that uses Google map API and I'm trying to customize the Google map and GoTo buttons. My idea is to put my own floatting buttons and make this buttons behave like those two or the MyLocation button too. Is there a way to make…
1
vote
1 answer

Android app backward compatible version of google play services API

when I deploy my android app on android mobile version 4.4 (lollipop), I am getting a message that "app won't run unless you update Google play services" I looked at my android mobile and can see that Google play services version is 5.1.89. I know…
1
vote
1 answer

Google Map fragment not showing current location button

I have a Fragment class which contains a MapView. It is working fine, the only problem is it doesn't show the Current location button, i set it true: nMap =…
1
vote
1 answer

Nested Scroll View height Issue

I have implemented Google Maps with bottomsheet. However when I check the layout, the map is on the top of the screen, not occupying the whole width and height of the screen. I've tried many ways to fix this, but no luck. Below is the layout…
1
vote
1 answer

call permission which may be rejected for setMyLocationEnable android

Alas! after a lots of efforts and search I couldn't find my problem. I want to find current location in google map but I am still getting an error(required permissions). call requires permission which may be rejected by user: code should …