Hi,,

I'm writing a application that send a signal to another device thru the 
earplug.
I.e. the application plays a mp3( 1 sec long ) file to the other device and 
this work very good with some simple commands.

But when I try to send the command every 10 sec for 10 minutes it stops 
after 2:40 minutes (the command play at 2:40 works but after that no signal)
I can log that it SHOULD play the sound but it does not.

Its quite a simple code (mPlayer is declared in top of the code as: 

private MediaPlayer mPlayer

This code is called every 10 sec and it works for the first 24 times but 
then it just writes in the debuglog, but sends no sound.

private void sendCommand() {

    Log.*d*("CMD!", "Playing sound for command Activate");
    mPlayer = MediaPlayer.create(this, R.raw.cmd_activate); }
    mPlayer.setVolume(1, 1);  //Sets the volume on both channels
    mPlayer.start();

}


What have i missed, why does it stop making the sound to the earplug?


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to