mapbox-android-demo icon indicating copy to clipboard operation
mapbox-android-demo copied to clipboard

How to change requestLocationUpdates time with android mapbox?

Open MateusCarvalho opened this issue 9 years ago • 5 comments

I'm using the Android SDK to track the user through a background service. From what I've read, the LocationEngine.requestLocationUpdates () method refreshes every 2 minutes, I want to set a shorter time, how do I do this?

MateusCarvalho avatar Apr 08 '17 14:04 MateusCarvalho

@MateusCarvalho Thank you for the note. You need to update to Mapbox Android Services 2.1.0+. That version added setInterval, setFastestInterval and setSmallestDisplacement https://github.com/mapbox/mapbox-java/issues/395 to allow configurable LocationEngine parameters.

zugaldia avatar Apr 19 '17 01:04 zugaldia

Hi,

I have other question.

I tried import this class GeocoderAutoCompleteView with Mapbox Services, but this not found in the package.

2017-04-18 22:47 GMT-03:00 Antonio Zugaldia [email protected]:

Closed #271 https://github.com/mapbox/mapbox-android-demo/issues/271.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mapbox/mapbox-android-demo/issues/271#event-1047717605, or mute the thread https://github.com/notifications/unsubscribe-auth/AFOfDM0PB-Z_s0VhIn0cNxevl7bWFbuFks5rxWfBgaJpZM4M3uSe .

-- Att, Mateus Carvalho Desenvolvedor Web.

www.mateuscarvalho.com http://www.mateuscarvalho.com

MateusCarvalho avatar Apr 24 '17 17:04 MateusCarvalho

@MateusCarvalho The GeocoderAutoCompleteView is in the mapbox-android-ui package.

For other support questions, please email [email protected]. Thanks!

zugaldia avatar Apr 24 '17 18:04 zugaldia

Yes. But the mapbox-android-ui package is not including in com.mapbox.mapboxsdk: mapbox-android-services: 2.1.0?

2017-04-24 15:05 GMT-03:00 Antonio Zugaldia [email protected]:

@MateusCarvalho https://github.com/MateusCarvalho The GeocoderAutoCompleteView https://github.com/mapbox/mapbox-java/blob/master/mapbox/libandroid-ui/src/main/java/com/mapbox/services/android/ui/geocoder/GeocoderAutoCompleteView.java is in the mapbox-android-ui package.

For other support questions, please email [email protected]. Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mapbox/mapbox-android-demo/issues/271#issuecomment-296773550, or mute the thread https://github.com/notifications/unsubscribe-auth/AFOfDBvmgwqPXNvt2ZsVGWy0PGjIfvnmks5rzORigaJpZM4M3uSe .

-- Att, Mateus Carvalho Desenvolvedor Web.

www.mateuscarvalho.com http://www.mateuscarvalho.com

MateusCarvalho avatar Apr 24 '17 18:04 MateusCarvalho

@MateusCarvalho You need to include the dependency separately. On Gradle, for example:

compile 'com.mapbox.mapboxsdk:mapbox-android-ui:2.1.0'

zugaldia avatar Apr 24 '17 18:04 zugaldia