문제

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

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top