+ 3
Where and how do I add songs to my Android app? Am stuck.
I want to use NetBeans IDE.
3 odpowiedzi
+ 7
Hello, Malilwe Hamulondo !
To play audio, "MediaPlayer" must know which particular resource (file) to produce. You can set the required resource for playback in three ways:
To the create() method of the MediaPlayer, the id of the resource representing the audio file
In the create() method of the MediaPlayer, a Uri object representing the audio file
The fullDown to the audio file is passed to the MediaPlayer's setDataSource() method
Also see how you can use this value
https://stackoverflow.com/questions/22490064/how-to-use-javafx-mediaplayer-correctly
+ 2
thank you *Alexander Sokolov*
+ 1
thank you