+ 3

Where and how do I add songs to my Android app? Am stuck.

I want to use NetBeans IDE.

8th Jul 2018, 3:13 PM
Malilwe Hamulondo
Malilwe Hamulondo - avatar
3 Réponses
+ 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
8th Jul 2018, 3:17 PM
Alexander Sokolov
Alexander Sokolov - avatar
+ 2
thank you *Alexander Sokolov*
8th Jul 2018, 3:20 PM
Malilwe Hamulondo
Malilwe Hamulondo - avatar
+ 1
thank you
10th Nov 2018, 5:14 AM
Malilwe Hamulondo
Malilwe Hamulondo - avatar