I am building an app using App Inventor in which I need to play some sounds on button click. When I click button once it gives me
error 703: unable to play file
But on the next time, the sound is played.
Can anyone help me with this error?
I am building an app using App Inventor in which I need to play some sounds on button click. When I click button once it gives me
error 703: unable to play file
But on the next time, the sound is played.
Can anyone help me with this error?
Done it. I just initialized sound component with every file at screen initialize. Now its working fine.
Try the below code,it works fine for me.
Uri b = Uri.parse(uri);
MediaPlayer mp = MediaPlayer.create(context,b);
mp.start();