title: manager.setSpeakerphoneOn(true) not working for tablet
body: <pre><code>manager.setSpeakerphoneOn(true);
  </code></pre>
  <p>works for mobile phones but does not works for tablet.
  The sound does not plays from the speaker. Does anybody knows why?
  Please Help</p>
  <p>MODIFY_AUDIO_SETTINGS permission is also added in Manifest file.</p>
  <p><em><strong>My code</strong></em></p>
  <p>Path for the audio file
  String mainpath = &quot;android.resource://com.example.texttospeech/raw/&quot;;</p>
  <pre><code> public void makeSound(String amount) {
              AudioManager m_amAudioManager;  
              m_amAudioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE);  
              m_amAudioManager.setMode(AudioManager.MODE_CURRENT); 
              m_amAudioManager.setSpeakerphoneOn(true); 
              
              int numInput = Integer.parseInt(amount);
              String amt = amount;
              Log.d(&quot;The amount is : &quot;, amt);
              int length = amt.length();
              Log.d(&quot;Length of the String : &quot;, Integer.toString(length));
      
              thousandsDigit = numInput / 1000;
              ths = numInput % 1000;
              hundredsDigit = ths / 100;
              hs = ths % 100;
              tensDigit = hs / 10;
              onesDigit = hs % 10;
      
              System.out.println(thousandsDigit);
              System.out.println(hundredsDigit);
              System.out.println(tensDigit);
              System.out.println(onesDigit);
              Log.d(&quot;Transaction type:&quot;,transactionType);
              if (transactionType.equals(&quot;WITHDRAW&quot;)){
                  // withdraw();
                  final MediaPlayer mp11 = new MediaPlayer();
                  try {
      
                      mp11.setDataSource(AgentTransaction.this,
                              Uri.parse(mainpath + &quot;withdraw&quot;));
                      mp11.prepare();
      
                  } catch (IllegalArgumentException | SecurityException
                          | IllegalStateException | IOException e1) {
                      // TODO Auto-generated catch block
                      e1.printStackTrace();
                  }
                  mp11.start();
                  mp11.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {
                      @Override
                      public void onCompletion(MediaPlayer mp) {
                          mp11.release();
                          
      
                      }
                  });
              }
  }
  </code></pre>