Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6899243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:23:50+00:00 2026-05-27T07:23:50+00:00

I have some videos stored dynamically on R.res.raw . For example, I can acces

  • 0

I have some videos stored dynamically on R.res.raw.

For example, I can acces to the video called v.mp4 with this line of code:

String fileName = "android.resource://" + this.getPackageName() + "/" + R.raw.v;

OK, but I will describe the video that i must open with a string (“v”). Then, I tried to do this, but it didn’t works:

String fileName = "android.resource://" + this.getPackageName() + "/" + R.raw+".v";

I can’t do that, I get an error on R.raw

I also tried with this, but it doesn’t works:

String fileName = "android.resource://" + this.getPackageName() + "/res/raw/"+"v.mp4";

How can I solve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:23:51+00:00Added an answer on May 27, 2026 at 7:23 am

    If you want to get any resource Path then there are two ways :

    1. Using Resource Name

      Syntax : android.resource://[package]/[res type]/[res name]

      Example : If icon.png image file is available in res/drawable folder you can get path like :

      String PATH="android.resource://com.my.package/drawable/icon";

    2. Using Resource Id

      Syntax : android.resource://[package]/[resource_id]

      Example : If icon.png image file is available in res/drawable folder you can get path:

      String PATH="android.resource://com.my.package/" + R.drawable.icon;

    This were the examples to get the URI of any image file stored in drawable folder.

    Similarly you can get URIs of res/raw folder also.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have name of some videos which are going to be stored in video
I save a video, test.mp4 , in my project's res/raw directory. I have my
I have some audio and video files stored in a server. I need to
i have an xml document structured like this: <NewDataSet> <videos> <video> <name>name of video</name>
I have some video files stored on S3, and I want to get video
I have some site where I am embedding a couple of youtube videos in
Let's say I have a flash video streaming website, what are some ways in
I have some classes layed out like this class A { public virtual void
I have some code like this in a winforms app I was writing to
I've been told that some apps have video streaming which streams initially and when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.