Frage

In my fragment class I have implemented LocationListener for knowing my current location but i need to know which method is being created first is it the @override public void OnLocationChanged(Location location) or @override public void onResume()???

-thanks

War es hilfreich?

Lösung

The calling of onLocationChanged() is not dependent on the calling of onResume(). It all depends on how your code is set up and when you actually change your location.

Due to this, you must put System.out.println() lines in the relevant parts of your code to verify when the methods are being called.

Hopefully this is of help.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top