×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    22

    update location information

    Hi. I connect GPS using jsr179(location based classes) and i update location informations using locationlistener.My problem is that:i want to update informations(coordinates) in a few seconds,but my application update in 40 seconds(average). As i said,i used locationlistener.
    1- *lp.setLocationListener(this,5, -1, -1);*
    2- *lp.setLocationListener(this,-1, -1, -1);*
    I tried the methods above respectively. Are there any settings that i did not. How can i retrieve location updates in a few seconds and update them? Thanks.

    (i thougth that maybe my phone's receiver is slow. But ,i found a few gps application on the net. They works like what i want to do..)

  2. #2
    Nokia Developer Champion
    Join Date
    Sep 2007
    Posts
    915

    Re: update location information

    Quote Originally Posted by cenbek03 View Post
    Hi. I connect GPS using jsr179(location based classes) and i update location informations using locationlistener.My problem is that:i want to update informations(coordinates) in a few seconds,but my application update in 40 seconds(average). As i said,i used locationlistener.
    1- *lp.setLocationListener(this,5, -1, -1);*
    2- *lp.setLocationListener(this,-1, -1, -1);*
    I tried the methods above respectively. Are there any settings that i did not. How can i retrieve location updates in a few seconds and update them? Thanks.

    (i thougth that maybe my phone's receiver is slow. But ,i found a few gps application on the net. They works like what i want to do..)
    You can do it by using the classes like TImer and TimerTask. Just create one class and method which will creat the oibject of Criteria and LocationProvider etc. create object of that class and then call its method continuously from run method of TImerTask class. You can give duration as you like. Let us know if there is any issue.

  3. #3
    Registered User
    Join Date
    Nov 2008
    Posts
    22

    Re: update location information

    i use Thread for receiving location updates. I don't try Timer or Timertask. What does Timer/Tmiertask do? i couldn't understand,because i use Thread.

  4. #4
    Nokia Developer Champion
    Join Date
    Sep 2007
    Posts
    915

    Re: update location information

    Quote Originally Posted by cenbek03 View Post
    i use Thread for receiving location updates. I don't try Timer or Timertask. What does Timer/Tmiertask do? i couldn't understand,because i use Thread.
    Using timer and TimerTask the method run of TimerTaks will be automatically invoked so you do not need to call some method continuously. If you are using Thread then you will have to call sleep method and you will have to do some work by yourself which is available inbuilt in these classses

  5. #5
    Registered User
    Join Date
    May 2009
    Posts
    2

    Re: update location information

    Quote Originally Posted by cenbek03 View Post
    Hi. I connect GPS using jsr179(location based classes) and i update location informations using locationlistener.My problem is that:i want to update informations(coordinates) in a few seconds,but my application update in 40 seconds(average). As i said,i used locationlistener.
    1- *lp.setLocationListener(this,5, -1, -1);*
    2- *lp.setLocationListener(this,-1, -1, -1);*
    I tried the methods above respectively. Are there any settings that i did not. How can i retrieve location updates in a few seconds and update them? Thanks.

    (i thougth that maybe my phone's receiver is slow. But ,i found a few gps application on the net. They works like what i want to do..)
    Can you show your Criteria object?

Similar Threads

  1. N95 + Location API + V20 Firmware = no-go ?
    By Tiger79 in forum Mobile Java General
    Replies: 0
    Last Post: 2008-03-05, 12:13
  2. Replies: 0
    Last Post: 2005-03-30, 14:05
  3. Very Easy way to get location information(I think)
    By msudan in forum Mobile Java General
    Replies: 0
    Last Post: 2005-03-29, 21:29
  4. Getting location information from SMS
    By Nokia_Archive in forum General Messaging
    Replies: 1
    Last Post: 2002-05-20, 15:34
  5. How can I get location information from bluetooth device?
    By yayee_999 in forum Bluetooth Technology
    Replies: 0
    Last Post: 2002-05-13, 08:48

Posting Permissions

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