質問

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