how to remove ".mp3" from "xxx.mp3" string
<p>i want to make a music player, i have a problem to toast file name because it always includes the extension(".mp3")</p>

<p>does anyone know how to remove those extension?</p>

<p>this is my code</p>

<pre><code>try {
    if (mMediaPlayer.isPlaying()) {
        mMediaPlayer.reset();
    }
    mMediaPlayer.setDataSource(filename);
    mMediaPlayer.prepare();
    mMediaPlayer.start();
    Toast.makeText(getApplicationContext(), nama , Toast.LENGTH_LONG).show();
} catch (Exception e) {
}
</code></pre>

<p>and </p>

<pre><code>music_column_index=
    musiccursor.getColumnIndexOrThrow(MediaStore.Audio.Media.DISPLAY_NAME);
musiccursor.moveToPosition(position);
nama = musiccursor.getString(music_column_index);
</code></pre>

<p>i want to make it toast "xx" not "xx.mp3"</p>
