1. Download our Official Android App: Forums for Android!

Need help in coding

Discussion in 'Android Apps & Games' started by namdaemun, Apr 18, 2011.

  1. namdaemun

    namdaemun Lurker
    Thread Starter
    Rank:
    None
    Points:
    25
    Posts:
    2
    Joined:
    Mar 11, 2011

    Mar 11, 2011
    2
    0
    25
    I've just started learning to build android apps a week ago and now I'm playing with MediaPlayer class.

    I'm building an app that will play a sound once the user clicks the button

    here's my code :

    It was compiled successfully and worked on my emulator. but when I installed it on my motorola droid, the sound won't come out. I've set the volume to max, but nothing happens. I think it's probably because of the source code

    I'll be very grateful if you can point out my mistakes in my source code

    THX for the help...^^ :D:D:D
     

    Advertisement

Share This Page

Loading...