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,…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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 =…
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…
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
…