I try yo add prev and next function in my app but it keep crashing
I am a beginner in android studio, I want to add next and prev function in my media player but the app keep crashing. Everything is working well after I add this function into my app
The music is not displaying and the app keep closing pop out when I try to press any button in my app.
Here is my code. Can anyone please help me? I really appreciate it.
package com.example.myapplication
import android.media.MediaPlayer
import android.os.Build
import androidx.appcompat.app.AppCompatActivity...