MediaPlayer mediaPlayer = new MediaPlayer(); mediaPlayer.setOnBufferingUpdateListener(new MediaPlayer.OnBufferingUpdateListener() { @Override public void onBufferingUpdate(MediaPlayer mp, int percent) { // Update buffering progress UI Log.d(TAG, "Buffering progress: " + percent + "%"); } });In this example, a new MediaPlayer instance is created and a listener for buffering updates is set. The listener will print out the percentage of the media that has been buffered. Package library: android.media