fm/fmapp2/src/com/caf/fmradio/FMRadio.java
boolean isWiredHeadsetAvailable() {
      boolean bAvailable = false;
      if(mService != null) {
         try {
            bAvailable = mService.isWiredHeadsetAvailable();
         }catch (RemoteException e) {
            e.printStackTrace();
         }
      }
      Log.e(LOGTAG, "isWiredHeadsetAvailable: " + bAvailable);
      return bAvailable;
   }
/**
    * @return true if a wired headset is connected.
    */
@return true if a wired headset is connected.
@return true if a wired headset is connected .
boolean isWiredHeadsetAvailable() {
      boolean bAvailable = false;
      if(mService != null) {
         try {
            bAvailable = mService.isWiredHeadsetAvailable();
         }catch (RemoteException e) {
            e.printStackTrace();
         }
      }
      Log.e(LOGTAG, "isWiredHeadsetAvailable: " + bAvailable);
      return bAvailable;
   }
boolean isWiredHeadsetAvailable ( ) { boolean bAvailable = false ; if ( mService != null ) { try { bAvailable = mService . isWiredHeadsetAvailable ( ) ; } catch ( RemoteException e ) { e . printStackTrace ( ) ; } } Log . e ( LOGTAG , "isWiredHeadsetAvailable: " + bAvailable ) ; return bAvailable ; }
@return true if a wired headset is connected.
@return true if a wired headset is connected .