android - what if LocationListener.onLocationChanged is not called? -


in android app, making use of google play's location services determining device location.so implementing com.google.android.gms.location.locationlistener's onlocationchanged method. based on device's location settings, possible method not called.for eg, if user has set 'device only' option gps based location access available,and if user indoor gps wont work , onlocationchanged() not called.

i want know how come know of @ run time alternate action can suggested user?

from document itself, locationlistener used receiving notifications locationmanager when location has changed. these methods called if locationlistener has been registered location manager service using requestlocationupdates(string, long, float, locationlistener) method.

also check blog understand more locationlistener in android. explains here status , behavior of gps , sample code serve guide you. hope helps know more locationlistener


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -