PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 25 → WX - Som de erro e som de ok
WX - Som de erro e som de ok
Débuté par BOLLER, 02 nov. 2017 15:27 - 1 réponse
Membre enregistré
3 651 messages
Popularité : +175 (223 votes)
Posté le 02 novembre 2017 - 15:27
// Summary: <specify the procedure action>
// Syntax:
// Som_Erro ()
//
// Parameters:
// None
// Return Value:
// None
//
// For instance:
// Indicate an example.
//
Procedure Som_Erro()

VibrationTrigger()
Sound("Error.wav",soundDefault)
<Compile IF Configuration="Android application">
VibrationStop()
<END>


// Summary: <specify the procedure action>
// Syntax:
// Som_OK ()
//
// Parameters:
// None
// Return Value:
// None
//
// For instance:
// Indicate an example.
//
Procedure Som_OK()

VibrationTrigger()
Sound("ColetouSucesso.wav",soundDefault)
<Compile IF Configuration="Android application">
VibrationStop()
<END>


// Summary: <specify the procedure action>
// Syntax:
// Som_Notifica ()
//
// Parameters:
// None
// Return Value:
// None
//
// For instance:
// Indicate an example.
//
Procedure Som_Notifica()

VibrationTrigger()
Sound("Notificacao.wav",soundDefault)
<Compile IF Configuration="Android application">
VibrationStop()
<END>


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Message modifié, 02 novembre 2017 - 15:28
Membre enregistré
3 651 messages
Popularité : +175 (223 votes)
Posté le 02 novembre 2017 - 16:19
public static void JavaExecMp3(String filePath)
{
import android.media.MediaPlayer;
try {
MediaPlayer mediaPlayer = new MediaPlayer();
mediaPlayer.setDataSource(filePath);
mediaPlayer.prepare();
mediaPlayer.start();
} catch (Exception ex) {

}

}


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/