I am trying to play a sound file on the click of a button. The sound is just 1 sec long. It plays well the first few times I click the button, but after a while it gives a NullPointerException. Here's the code:
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Showing posts with label mediaplayer. Show all posts
Showing posts with label mediaplayer. Show all posts
Sunday, April 22, 2012
Android - play sound on button click - Null pointer exception
Tags
android,
audio,
button,
click,
mediaplayer,
Tips For Programmer
Wednesday, January 18, 2012
Sunday, January 15, 2012
How to Set playing Frequency in android
I have developed an music app in android.Now i want to know that is there any way through which i set playing frequency of audio file.I am using android Media player for playing audio.Also please tell me that how can i use equilizer for my app.
Subscribe to:
Posts (Atom)