-1

I have been following a tutorial to create a basic GPS locator tracking app. When I call the updateGPS method, the app crashes in the emulator.

My error in the logcat is:

    Process: edu.icl.gpslocator, PID: 15342
    java.lang.NullPointerException: Attempt to invoke virtual method 'double android.location.Location.getLatitude()' on a null object reference```

Maddy
  • 1

0 Answers0