By using two activities
- activity_main.xml
- activity_play_song.xml
< uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
add the third-party dependencies as implementation 'com.karumi:dexter:6.2.3' --> Copy paste this into the dependencies section
Here we have the project screenshot :
Futher features can be added as you wish Hope this might be helpful to you Thank You :):