private void handleIntent(Intent intent){
  if (intent == null || intent.getAction() == null)   return;
  String action=intent.getAction();
  if (action.equalsIgnoreCase(ACTION_STOP)) {
    Log.i(TAG,"handleIntent: stopping stream from notification");
    stopStreaming();
    stopSleepTimer();
    toBackground();
    stopSelf();
  }
}

private void handleIntent ( Intent intent ) { if ( intent == null || intent . getAction ( ) == null ) return ; String action = intent . getAction ( ) ; if ( action . equalsIgnoreCase ( ACTION_STOP ) ) { Log . i ( TAG , "handleIntent: stopping stream from notification" ) ; stopStreaming ( ) ; stopSleepTimer ( ) ; toBackground ( ) ; stopSelf ( ) ; } }
handle intent from notification
