• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Search results

  1. I

    Apps setOnKeyListener not working

    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() {...
  2. I

    Apps MediaPlayer array causing nullpointer

    **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...
  3. I

    Apps Recording system audio

    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?