Questions tagged as 'google-maps-android-api-2'

1
answer

error: incompatible types: MapsFragment can not be converted to Fragment

I'm trying to add the Google Maps API snippet to the main project screen error: Incompatible types: MapsFragment can not be converted to Fragment part of the code: fragmentManager = getSupportFragmentManager(); FragmentTransacti...
asked by 03.07.2018 / 16:25
0
answers

Listeners (Listener) for changes to Google Maps v2 Android Camera Zoom?

I'm using the CameraPosition () to get the Camera Zoom in Google Maps mMap.getCameraPosition().zoom It works perfectly when calling from somewhere in the code, but I would like to create a Listener to change the Camera Zoom either by gest...
asked by 03.02.2018 / 04:29
1
answer

How to use SVG icon in Google Maps API Android addMarker (MarkerOptions)

I am using the following code from the Google Maps API v2 documentation for Android : mMap.addMarker(new MarkerOptions() .icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_bike)) .anchor(0.0f, 1.0f) // An...
asked by 28.01.2018 / 19:36
0
answers

How do I reload the map in the Android Maps API?

I wanted to know the function to reload the map. Type, when I do such an action it will execute a function that will load the whole map again.     
asked by 24.01.2018 / 20:56
0
answers

Delay too large when getting GPS coordinates

I'm having delay problems in getting the GPS coordinates. I get them the moment the user presses a textbox to validate the data. Motorola devices go well. Now testing on the OnePlus 3T (A3000) and on LG the delay has between 12 and 15 seconds, n...
asked by 06.11.2017 / 17:55
1
answer

Google Maps Direction API only works the first time

I have the following code that creates a route using the Google Maps API Directions: public class MapsActivity extends FragmentActivity implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener, OnMapReadyCallb...
asked by 08.11.2017 / 23:21
0
answers

Check user within circle of Map and activate a button

I'm developing an application and I came across a logic that I can not solve, if anyone can give a force, I'd appreciate it. IhaveadestinationthathasarangecircleofitImadeitwiththiscode:privatevoidsetDestino(Doublelatitude,Doublelongitude){la...
asked by 05.07.2017 / 18:47
1
answer

How to add an image stored in firebase storage to the imageView inside an infowindow of a marker?

I need to download a firebase image and open it in a custom infowindow on a map. public class MapaFocosActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener, GoogleMap.OnInfoWindowClickListener,...
asked by 11.07.2017 / 06:21
0
answers

Google Maps API, Location does not appear

I'm having a problem with the google maps API, everything was working fine when I was emulating my android studio map for my cell phone. After I make my app available in google play, the users that go down, the map does not appear for them, it l...
asked by 06.07.2017 / 02:08
1
answer

API Map Google Maps does not Render on mobile, only in Android Studio

I'm learning Android alone, over the internet and I'm working this time with the Google Maps API. I've done several things with it in Android Studio, displaying, using marker, geolocation, among other functions. But when I did the APK yesterday...
asked by 19.05.2017 / 16:44