Any idea why this code doesnt work? I am trying to update a TextView of the system volume when the volume up/down key is pressed.
TextView sysVol = (TextView)findViewById(R.id.systemVolume);
sysVol.setOnKeyListener(new OnKeyListener()
{...
**SOLVED***
used: MediaPlayer[] media=new MediaPlayer[5];
Hi, can anyone see why I would be getting a nullpointerexception with this code? The code is basically to create a MediaPlayer array so that I can loop through it and stop/start all of the mediaplayers at once. They are also linked to...
I'm allowing the user to push buttons to play sounds via a soundPool/mediaplayer. Is it possible to record whatever the soundPool/mediaplayer is playing so that the user can record a sequence of sounds?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.