Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top