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");
    }
  }
}

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" ) ; } } }
request gps update notification
