MCPcopy Create free account
hub / github.com/ZTFtrue/My-note / getLocation

Method getLocation

android/AndroidGPS.java:59–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57 }
58
59 @SuppressLint("MissingPermission")
60 public static Location getLocation() {
61 if (location == null) {
62 String bestP = locationManager.getBestProvider(getCri(), true);
63 location = locationManager.getLastKnownLocation(bestP);
64 }
65 return location;
66 }
67
68 public static void setLocation(Location location) {
69 LocationUtils.location = location;

Callers

nothing calls this directly

Calls 1

getCriMethod · 0.95

Tested by

no test coverage detected