fm/fmapp2/src/com/caf/fmradio/FMRadioService.java
private void fmOperationsReset() {
      if ( mSpeakerPhoneOn)
      {
          mSpeakerPhoneOn = false;
          AudioSystem.setForceUse(AudioSystem.FOR_MEDIA, AudioSystem.FORCE_NONE);
      }

      if (isFmRecordingOn())
      {
          stopRecording();
      }

      AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
      if(audioManager != null)
      {
         Log.d(LOGTAG, "audioManager.setFmRadioOn = false \n" );
         unMute();
         resetFM();
         //audioManager.setParameters("FMRadioOn=false");
         Log.d(LOGTAG, "audioManager.setFmRadioOn false done \n" );
      }

      if (isAnalogModeEnabled()) {
              SystemProperties.set("hw.fm.isAnalog","false");
              misAnalogPathEnabled = false;
      }
   }
/*
   * Reset (OFF) FM Operations: This resets all the current FM operations             .
   */
Reset (OFF) FM Operations: This resets all the current FM operations             .
Reset ( OFF ) FM Operations : This resets all the current FM operations .
private void fmOperationsReset() {
      if ( mSpeakerPhoneOn)
      {
          mSpeakerPhoneOn = false;
          AudioSystem.setForceUse(AudioSystem.FOR_MEDIA, AudioSystem.FORCE_NONE);
      }
      if (isFmRecordingOn())
      {
          stopRecording();
      }
      AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
      if(audioManager != null)
      {
         Log.d(LOGTAG, "audioManager.setFmRadioOn = false \n" );
         unMute();
         resetFM();
         Log.d(LOGTAG, "audioManager.setFmRadioOn false done \n" );
      }
      if (isAnalogModeEnabled()) {
              SystemProperties.set("hw.fm.isAnalog","false");
              misAnalogPathEnabled = false;
      }
   }
private void fmOperationsReset ( ) { if ( mSpeakerPhoneOn ) { mSpeakerPhoneOn = false ; AudioSystem . setForceUse ( AudioSystem . FOR_MEDIA , AudioSystem . FORCE_NONE ) ; } if ( isFmRecordingOn ( ) ) { stopRecording ( ) ; } AudioManager audioManager = ( AudioManager ) getSystemService ( Context . AUDIO_SERVICE ) ; if ( audioManager != null ) { Log . d ( LOGTAG , "audioManager.setFmRadioOn = false \n" ) ; unMute ( ) ; resetFM ( ) ; Log . d ( LOGTAG , "audioManager.setFmRadioOn false done \n" ) ; } if ( isAnalogModeEnabled ( ) ) { SystemProperties . set ( "hw.fm.isAnalog" , "false" ) ; misAnalogPathEnabled = false ; } }
Reset (OFF) FM Operations: This resets all the current FM operations             .
Reset ( OFF ) FM Operations : This resets all the current FM operations .
//audioManager.setParameters("FMRadioOn=false");