R
R
rafaelSalihov2020-01-26 10:13:58
Java
rafaelSalihov, 2020-01-26 10:13:58

How to substitute the name of an mp3 file in MediaPlayer from sqllite?

It is necessary to substitute the name of the file from the database, which will have to be played
now with me manually through if if the value in the database is 1, then display lesson1?
It is impossible to somehow substitute urok1 in R.raw.urok1 with a variable and then display databases?

MediaPlayer = MediaPlayer.create(Book_Activity_detal.this, R.raw.urok1);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AndroidDev2015, 2020-01-26
@rafaelSalihov

https://stackoverflow.com/questions/3476430/how-to...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question