I am trying to have a constant gps listener that will send its location (long and lat coordinates) to a web server every x mins. On a button click it will also send its loca
Timer timer = new Timer();
timer.scheduleAtFixedRate(new SendLocationTask(), 0, 60000);
class SendLocationTask extends TimerTask{
public abstract void run(){
// send position info here
}
}