is there are any way to make Google Map position marker disapear when position is lost and inform user about this? When I open map and turning on GPS (or mobile data/wifi), position marker (blue dot) is showing almost instantly in my last known position (I think), but if I turning off all position providers (GPS, mobile data, wifi) the blue dot stays at the same position until I close and open application again. It is possible to know if position lost and show user some kind of message? I tried to look at onLocationChanged
method in LocationListener
class and in GoogleMap
method onMyLocationChange
, but none of them not providing any info when all position providers is turned off. So, where is any way?
P.s. In official Google Maps application position marker works identical as I want.