Skip to main content
removeu 11 caracteres do conteúdo
Fonte Link
ramaral
  • 44,7mil
  • 14
  • 60
  • 110

Porque o som toca somente em modo debug?

Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
MediaPlayer mp = MediaPlayer.create(getApplicationContext(), notification);
mp.start();
mp.reset();
mp.release();

Obrigado.

Porque o som toca somente em modo debug?

Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
MediaPlayer mp = MediaPlayer.create(getApplicationContext(), notification);
mp.start();
mp.reset();
mp.release();

Obrigado.

Porque o som toca somente em modo debug?

Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
MediaPlayer mp = MediaPlayer.create(getApplicationContext(), notification);
mp.start();
mp.reset();
mp.release();

Porque o som toca somente em modo debug?

Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); MediaPlayer mp = MediaPlayer.create(getApplicationContext(), notification); mp.start(); mp.reset(); mp.release();

Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
MediaPlayer mp = MediaPlayer.create(getApplicationContext(), notification);
mp.start();
mp.reset();
mp.release();

Obrigado.

Porque o som toca somente em modo debug?

Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); MediaPlayer mp = MediaPlayer.create(getApplicationContext(), notification); mp.start(); mp.reset(); mp.release();

Obrigado.

Porque o som toca somente em modo debug?

Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
MediaPlayer mp = MediaPlayer.create(getApplicationContext(), notification);
mp.start();
mp.reset();
mp.release();

Obrigado.

Identação de código
Fonte Link

Porque o som toca somente em modo debug?

Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); MediaPlayer mp = MediaPlayer.create(getApplicationContext(), notification); mp.start(); mp.reset(); mp.release(); ObrigadoUri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); MediaPlayer mp = MediaPlayer.create(getApplicationContext(), notification); mp.start(); mp.reset(); mp.release();

Obrigado.

Porque o som toca somente em modo debug?

Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); MediaPlayer mp = MediaPlayer.create(getApplicationContext(), notification); mp.start(); mp.reset(); mp.release(); Obrigado.

Porque o som toca somente em modo debug?

Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); MediaPlayer mp = MediaPlayer.create(getApplicationContext(), notification); mp.start(); mp.reset(); mp.release();

Obrigado.

Fonte Link
Carregando