How to use PATH_TO_FILE


Last Updated:

  1. Beanstalk

    Beanstalk Member This Topic's Starter

    Joined:
    Jun 24, 2010
    Messages:
    9
    Likes Received:
    0
    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 Well-Known Member

    Joined:
    Apr 30, 2010
    Messages:
    375
    Likes Received:
    35
    Beanstalk likes this.

Share This Page

Loading...