Skip to content Skip to sidebar Skip to footer

Ongpsstatuschanged(int Event) Is Never Called

I´m trying on first fix do something. I just need one location after is gps fixed. I don´t know how to do it. I tried onLocationChanged, but is never called I tried onGpsStatusCh

Solution 1:

You need to add addGpsStatusListener

LocationManager locMgr = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE);
locMgr.addGpsStatusListener(this);

Post a Comment for "Ongpsstatuschanged(int Event) Is Never Called"