1. Check out our companion app, Forums for Android! Download from Google Play

Location/Movement simulation on map

Discussion in 'Application Development' started by andrei.fifiita, Jun 30, 2009.

  1. andrei.fifiita

    andrei.fifiita New Member
    Thread Starter
    5

    Jun 30, 2009
    2
    0
    5
    Hello, I'm trying to simulate movement on the MapView. For that I used the android shell and a program that connects to localhost:5554 and sends a message at a few hundred milliseconds with the following format: geo fix [coord1] [coord2]
    I tested by increasing the numbers coord1 and coord2 (floats) with values like 0.001f, 0.01f, 0.00001f but it seams that the emulator wont update My Location on map if the new location is very close to the old one (so i can't simulate movement)

    Is there any other way to simulate the coords of My Location ? (programatically for example)

    Thanks!
     

    Advertisement

  2. andrei.fifiita

    andrei.fifiita New Member
    Thread Starter
    5

    Jun 30, 2009
    2
    0
    5
    I also used LocationManager and requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000, 100, listener) method sending the coords with locManager.setTestProviderLocation(LocationManager.GPS_PROVIDER, location) , but the method onLocationChanged() is called only once.

    Can anyone help?
     
  3. lindapret88

    lindapret88 New Member
    5

    Jul 15, 2009
    1
    0
    5
  4. Bancato

    Bancato New Member
    5

    Aug 4, 2009
    1
    0
    5

Share This Page

Loading...