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


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:

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.