fm/fmapp2/src/com/caf/fmradio/FMTransmitterService.java
private boolean fmRestart() {
      boolean bStatus=false;
      Log.d(LOGTAG, "fmRestart");

      /* First Disable Transmitter, if enabled */
      if (mTransmitter != null)
      {
         bStatus = mTransmitter.disable();
         mTransmitter = null;
         mFMOn = false;
      }

      /* Disable Receiver */
      if (mReceiver != null)
      {
         bStatus = mReceiver.disable();
         mReceiver = null;
      }
      try {
          Thread.sleep(100);//sleep needed for SoC to switch mode
      }
      catch ( Exception ex ) {
          Log.d( LOGTAG,  "RunningThread InterruptedException");
      }
      bStatus = fmOn();
      return(bStatus);
   }
/*
    * Restart FM Transmitter: Disables FM receiver mode or transmitter is already active
    * and Powers up FM hardware, and initializes the FM module
    *
    * @return true if fm Enable api was invoked successfully, false if the api failed.
    */
Restart FM Transmitter: Disables FM receiver mode or transmitter is already active
and Powers up FM hardware, and initializes the FM module

@return true if fm Enable api was invoked successfully, false if the api failed.
Restart FM Transmitter : Disables FM receiver mode or transmitter is already active and Powers up FM hardware and initializes the FM module @return true if fm Enable api was invoked successfully false if the api failed .
private boolean fmRestart() {
      boolean bStatus=false;
      Log.d(LOGTAG, "fmRestart");
      /* First Disable Transmitter, if enabled */
      if (mTransmitter != null)
      {
         bStatus = mTransmitter.disable();
         mTransmitter = null;
         mFMOn = false;
      }
      /* Disable Receiver */
      if (mReceiver != null)
      {
         bStatus = mReceiver.disable();
         mReceiver = null;
      }
      try {
          Thread.sleep(100);
      }
      catch ( Exception ex ) {
          Log.d( LOGTAG,  "RunningThread InterruptedException");
      }
      bStatus = fmOn();
      return(bStatus);
   }
private boolean fmRestart ( ) { boolean bStatus = false ; Log . d ( LOGTAG , "fmRestart" ) ; /* First Disable Transmitter, if enabled */ if ( mTransmitter != null ) { bStatus = mTransmitter . disable ( ) ; mTransmitter = null ; mFMOn = false ; } /* Disable Receiver */ if ( mReceiver != null ) { bStatus = mReceiver . disable ( ) ; mReceiver = null ; } try { Thread . sleep ( 100 ) ; } catch ( Exception ex ) { Log . d ( LOGTAG , "RunningThread InterruptedException" ) ; } bStatus = fmOn ( ) ; return ( bStatus ) ; }
Restart FM Transmitter: Disables FM receiver mode or transmitter is already active
 and Powers up FM hardware, and initializes the FM module
Restart FM Transmitter : Disables FM receiver mode or transmitter is already active and Powers up FM hardware and initializes the FM module
//sleep needed for SoC to switch mode