All the ways described above works fine, but I would like to play sound from project res folder, as in your example.


plusminus wrote:Hello cybersat,
did you hear the sound the emulator makes when hitting the VolumeUp/Down Buttons
did you run the emulator with "-useaudio"
Regards,
plusminus



D/asset(555): Data exceeds UNCOMPRESS_DATA_MAX (11960997 vs 1048576)

public void onClick(View arg0) {
MediaPlayer mp = MediaPlayer.create(MusicPlayer.this,
R.raw.everlast);
mp.prepare();
mp.start(); 


plusminus wrote:Ringing on incoming Voice-Calls works fine for me (changing the volume while its ringing works also) ....

Users browsing this forum: No registered users and 9 guests