Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
秋逸 committed Dec 21, 2016
1 parent 4481464 commit ea27fd2
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import android.location.LocationProvider;
import android.os.Bundle;
import android.provider.Settings;
import android.util.Log;

import java.io.IOException;
import java.util.List;
Expand Down Expand Up @@ -212,13 +213,13 @@ public void onStatusChanged(String provider, int status, Bundle extras) {
}
switch (status) {
case LocationProvider.AVAILABLE:
LogUtils.d("onStatusChanged", "当前GPS状态为可见状态");
Log.d("onStatusChanged", "当前GPS状态为可见状态");
break;
case LocationProvider.OUT_OF_SERVICE:
LogUtils.d("onStatusChanged", "当前GPS状态为服务区外状态");
Log.d("onStatusChanged", "当前GPS状态为服务区外状态");
break;
case LocationProvider.TEMPORARILY_UNAVAILABLE:
LogUtils.d("onStatusChanged", "当前GPS状态为暂停服务状态");
Log.d("onStatusChanged", "当前GPS状态为暂停服务状态");
break;
}
}
Expand Down

0 comments on commit ea27fd2

Please sign in to comment.