Play サービスにアクセスできる場合は、ユーザーの現在のアクティビティの認識をご覧ください。
それ以外の場合、locationListenerでは次のようなことができます: 受信した GPS 信号は同じ位置にある場合でも異なる可能性があるため、新しい場所と古い場所を単純に比較することはできません。次のコードのようなものを使用します
double venueLat =latitude // Last known lat
double venueLng = longitude // Last known lng
double latDistance = Math.toRadians(userLat - venueLat);
double lngDistance = Math.toRadians(userLng - venueLng);
double a = (Math.sin(latDistance / 2) * Math.sin(latDistance / 2)) +
(Math.cos(Math.toRadians(userLat))) *
(Math.cos(Math.toRadians(venueLat))) *
(Math.sin(lngDistance / 2)) *
(Math.sin(lngDistance / 2));
double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
double dist = 6371 * c;
if (dist<0.01){ (in km, you can use 0.1 for metres etc.)
/* If it's within 10m, we assume we're not moving */
}