Hi,
I have a java me s60 application that updates the device location at regular intervals to a MySQL webserver. Currently I create an instance of the following class in a separate thread which continually loops, updates the webserver, then sleeps for 30 seconds...
my question is , should i be using the LocationListener interface instead? The reason I ask is that when I google solutions for this issue everything seems to point to the LocationListener interface and i wonder if i'm missing something fundamental here?
One question I have about LocationListener is can it be used trigger an update only when the Location is changed, and therefore this could cut down on the amount of updates to the server if the device was static for a period of time...
any comments, advice appreciated...thanks

public class LBSthreadableV8 implements Runnable {
public void run() {
LBSv8 lbs = new LBSv8();
int count;
count =1;
while (count == 1) {
TCV8.lat = lbs.getLat();
TCV8.lon = lbs.getLon();

String queryString = "";
queryString = "/v3/DoD.php?TDLN=" + TCV8.TDLN+"&lat=" + TCV8.lat + "&lng=" +TCV8.lon+"&status=" +TCV8.status+"";
NetworkV8 dod = new NetworkV8 ();
dod.sendHttpUrl(queryString);
interval();

}

}