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

Apps How to import/use resources in Eclipse (android dev)

Discussion in 'Android Development' started by falconmick, Jul 3, 2011.

  1. falconmick

    falconmick Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Dec 21, 2010

    Dec 21, 2010
    3
    0
    5
    Ok... I thought that the way you would import sounds I wish to use I would drag and drop them into the res-raw folder inside the IDE... And I thought that I was doing it correct because it turned up in the R.java folder and I can access the files useing:
    Code (Text):
    1. R.raw.ba_behold
    but I get a run-time error when I run it where the program can't find the audio files :( it says: "ERROR: Source not found." and it gives me an option to show it where it is :(

    Is there a better/proper way to import/use sound
     

    Advertisement

Share This Page

Loading...