fm/fmapp2/src/com/caf/fmradio/FMRadioService.java
private void delayedStop(long duration, int nType) {
       int whatId = (nType == STOP_SERVICE) ? STOPSERVICE_ONSLEEP: STOPRECORD_ONTIMEOUT;
       if (nType == STOP_SERVICE)
           setAlarmSleepExpired(duration);
       else
           setAlarmRecordTimeout(duration);
   }
//handling the sleep and record stop when FM App not in focus
handling the sleep and record stop when FM App not in focus
handling the sleep and record stop when FM App not in focus
private void delayedStop(long duration, int nType) {
       int whatId = (nType == STOP_SERVICE) ? STOPSERVICE_ONSLEEP: STOPRECORD_ONTIMEOUT;
       if (nType == STOP_SERVICE)
           setAlarmSleepExpired(duration);
       else
           setAlarmRecordTimeout(duration);
   }
private void delayedStop ( long duration , int nType ) { int whatId = ( nType == STOP_SERVICE ) ? STOPSERVICE_ONSLEEP : STOPRECORD_ONTIMEOUT ; if ( nType == STOP_SERVICE ) setAlarmSleepExpired ( duration ) ; else setAlarmRecordTimeout ( duration ) ; }
handling the sleep and record stop when FM App not in focus
handling the sleep and record stop when FM App not in focus