×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    12

    N96: Get GPS data hangs

    Hi everyone,

    I have a weird problem. I have written a small java midlet. It collects GPS data (in NMEA form) and writes to the display in a thread. It calls DeviceControl.setLights(0, 10) periodically not to fade display. It works nicely. For a while...

    But after exactly 126 getLocation calls (normally it gives back data in every second) it can not receive data! It throws "Location request timed out". I measured many times and this 126 second seems to be a magic number! Even if I add 1000 ms sleep between the getLocation calls in the thread.

    Could anyone explain what could happen? Is there some kind of limitation in LocationProvider??? Should I call getInstance periodically?

    Thanx in advance!

  2. #2
    Registered User
    Join Date
    Jul 2009
    Posts
    12

    Re: N96: Get GPS data hangs

    Hi All,

    I think I have solved my problem! I implemented LocationListener in my class. Now it does not hangs after 126 calls. Maybe there is some kind of default maxage?
    It works nicely now!
    Last edited by Procyon lotor; 2009-08-12 at 23:06.

Similar Threads

  1. Replies: 1
    Last Post: 2008-12-06, 18:43
  2. Replies: 0
    Last Post: 2008-05-12, 09:57
  3. suckho, i have encontered the same problems. Could you tell me how you resolved it?
    By dicson_hu in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2005-12-09, 10:56
  4. GPRS connection problems on 6600..
    By suckho in forum Symbian Networking & Messaging (Closed)
    Replies: 10
    Last Post: 2005-12-02, 14:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •