question: private void enableUpdates ( ) { if ( lmgr != null ) { try { lmgr . addGpsStatusListener ( this ) ; lmgr . requestLocationUpdates ( LocationManager . GPS_PROVIDER , gpsLoggingInterval , 0 , this ) ; } catch ( SecurityException e ) { Log . e ( TAG , "You denied GPS permission, so this app won't work" ) ; } } }
target:  Request GPS update notification