[Solved] My code doesnt update my postion from GPS, Where can I add a method in my code?


You have to use onLocationChanged() to get the current position updates. You are currently doing nothing over there. Add these lines.

@Override
     public void onLocationChanged(Location location) {
        latitude = location.getLatitude();
        longitude = location.getLongitude();
     }

2

solved My code doesnt update my postion from GPS, Where can I add a method in my code?