private void startStreamingAudio(String url, File folder) { try { if (audioStreamer != null) { audioStreamer.interrupt(); } audioStreamer = new StreamingMediaPlayer( this, mPlayButton, streamButton, mProgressBar, folder, mStreamTxt); audioStreamer.startStreaming(url); synchronized (mutex) { mutex.notify(); this.waitForBuffer = false; } // lv is null SecurityNow sn = (SecurityNow) this.getApplication(); sn.smp = audioStreamer; // mutex = new Object(); // audioStreamer.startStreaming("http://www.pocketjourney.com/downloads/pj/tutorials/audio.mp3",1677, 214); // streamButton.setEnabled(false); } catch (IOException e) { Log.e(getClass().getName(), "Error starting to stream audio.", e); } }