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

Apps How to use PATH_TO_FILE

Discussion in 'Android Development' started by Beanstalk, Jul 17, 2010.

  1. Beanstalk

    Beanstalk Lurker
    Thread Starter
    5

    Jun 24, 2010
    9
    0
    5
    Student
    Hey,
    I was trying to use the MediaPlayer class and I have to specify the location of my video to be played. I tried setting the location the same way as setting the layout, using that same "R.layout.main" kind of format. If I create a folder called "video" in my "res" folder and put the video I want to play in it, what should my PATH_TO_FILE look like?
     

    Advertisement

  2. cp1

    cp1 Android Enthusiast
    53

    Apr 30, 2010
    375
    35
    53

Share This Page

Loading...