Java 多次发送查询,HttpPost

Java 多次发送查询,HttpPost,java,android,httpclient,Java,Android,Httpclient,我申请发送发送GPS坐标的POST请求,但不幸的是,有时他会发送3、5甚至1 所以我不明白为什么相同的坐标会被发送多次 //Méthode appelée au démarrage du Service @Override public int onStartCommand(Intent intent, int flags, int startId) { showNotification();//Appel de la méthode qui créé la barre de Notif

我申请发送发送GPS坐标的POST请求,但不幸的是,有时他会发送3、5甚至1

所以我不明白为什么相同的坐标会被发送多次

//Méthode appelée au démarrage du Service
@Override
public int onStartCommand(Intent intent, int flags, int startId)
{
    showNotification();//Appel de la méthode qui créé la barre de Notification

    if (monLocationManager != null && monLocationProvider != null) {

        //Vérification toutes les 30 secondes (40000 millisecondes ) si la position change
        //d'au moins 20 métres. Si c'est le cas, l'écouteur (instance de MajListener)
        //va etre averti
        monLocationManager.requestLocationUpdates(monLocationProvider, 30000, 20, new MajListener(this));
    }

    // Si le service est tué il ne redémarrera pas
    return Service.START_NOT_STICKY;
}
此外,我相信使用仿真器我们没有这个问题

多谢各位