Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] gps – How Do I Change The Update Frequency Of The HERE Android SDK PositioningManager?

Posted on November 11, 2022 By

Solution 1 :

You can instantiate and start the the PositionManganer and then retrieve the current position only when you are interested without attaching a position listener:

// Instantiate Positioning Manager
PositioningManager positioningManager = PositioningManager.getInstance();

// Start positioning manager
positioningManager.start(PositioningManager.LocationMethod.GPS_NETWORK);

// Now you can get your position any time you desire (within a timer)
GeoPosition gp = PositioningManager.getPosition();

https://developer.here.com/documentation/android-premium/3.16/dev_guide/topics/map-positioning.html

Problem :

I am currently using the Premium SDK Android to acquire GPS positioning in an app. The LocationMethod I am using is PositioningManager.LocationMethod.GPS and this results in updates being received once every second.

I would like to reduce the frequency to something like once every two seconds. How would I do this?

Comments

Comment posted by gopal krishna mareti

Don’t try to show it on the map instead call the method which show’s the location for every time period by using a timer task or timeout method!

READ  [FIXED] android studio when I try add dependency into the project Gradle file I get this error
Powered by Inline Related Posts
Android Tags:android, gps, here-api

Post navigation

Previous Post: [FIXED] activity_main.xml for android studio stuck on loading
Next Post: Can a beginner learn Moonlight Sonata 1st Movement?

Related Posts

[FIXED] android studio – flutter: Capture screenshot method not working Android
[FIXED] c# – change scene with a button and also do it with an effect? Unity Android
[FIXED] javascript – How to create a seperate navigation Drawer for different users : React Native Android
[FIXED] android studio – HLS not working in exoplayer in the following code Android
[FIXED] android – is this possible to enable/disable backstack of particular item in bottom navigation view? Android
[FIXED] java – How to run many “for” loops at the same time? Android

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • Which is stronger 19 gauge or 23 gauge?
  • Does BMW still use GM transmissions?
  • Is primary or secondary market research better?
  • What does it mean when ADT says low battery?
  • Can a baby sleep on a regular mattress?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme