R.raw folder denied access











up vote
-1
down vote

favorite












I have previously created a raw folder by going to the res folder -- Directory -- raw. I have also copied a song in my raw folder however when I am coding in my Main Activity and I type (this, R.raw.bomdiggy), the "raw" comes up in red and I have done lots of research on how to correct this error however I have not been able to. My main problem is that, when I type "R." I don't get an option for my raw folder.



This is my error code:



java.io.FileNotFoundException: /system/usr/hyphen-data/hyph-en- 
us.pat.txt: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:452)
at libcore.io.IoUtils$FileReader.<init>(IoUtils.java:207)
at libcore.io.IoUtils.readFileAsString(IoUtils.java:114)
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96)
at android.text.Hyphenator.init(Hyphenator.java:154)
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207)
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
at libcore.io.IoBridge.open(IoBridge.java:438)
at libcore.io.IoUtils$FileReader.<init>(IoUtils.java:207) 
at libcore.io.IoUtils.readFileAsString(IoUtils.java:114) 
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96) 
at android.text.Hyphenator.init(Hyphenator.java:154) 
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207) 
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)


And this is my Main Activity code:



MediaPlayer ring;
ring = MediaPlayer.create(this,R.raw.bomdiggy);
ring.start(); 


This tell me that a file like this does not exist, however I have already created such a folder. Is it due to my API level?










share|improve this question
























  • Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.
    – halfer
    Nov 20 at 8:39










  • This appears to be the third time I have asked you not to add begging messages, and yet here you are, adding begging messages to the title. This is considered especially poor form here. Bear in mind that if you garner a sufficient number of downvotes, an automatic question ban may be applied. And remember, it is only urgent for you, and for nobody else at all.
    – halfer
    Nov 20 at 8:41

















up vote
-1
down vote

favorite












I have previously created a raw folder by going to the res folder -- Directory -- raw. I have also copied a song in my raw folder however when I am coding in my Main Activity and I type (this, R.raw.bomdiggy), the "raw" comes up in red and I have done lots of research on how to correct this error however I have not been able to. My main problem is that, when I type "R." I don't get an option for my raw folder.



This is my error code:



java.io.FileNotFoundException: /system/usr/hyphen-data/hyph-en- 
us.pat.txt: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:452)
at libcore.io.IoUtils$FileReader.<init>(IoUtils.java:207)
at libcore.io.IoUtils.readFileAsString(IoUtils.java:114)
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96)
at android.text.Hyphenator.init(Hyphenator.java:154)
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207)
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
at libcore.io.IoBridge.open(IoBridge.java:438)
at libcore.io.IoUtils$FileReader.<init>(IoUtils.java:207) 
at libcore.io.IoUtils.readFileAsString(IoUtils.java:114) 
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96) 
at android.text.Hyphenator.init(Hyphenator.java:154) 
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207) 
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)


And this is my Main Activity code:



MediaPlayer ring;
ring = MediaPlayer.create(this,R.raw.bomdiggy);
ring.start(); 


This tell me that a file like this does not exist, however I have already created such a folder. Is it due to my API level?










share|improve this question
























  • Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.
    – halfer
    Nov 20 at 8:39










  • This appears to be the third time I have asked you not to add begging messages, and yet here you are, adding begging messages to the title. This is considered especially poor form here. Bear in mind that if you garner a sufficient number of downvotes, an automatic question ban may be applied. And remember, it is only urgent for you, and for nobody else at all.
    – halfer
    Nov 20 at 8:41















up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











I have previously created a raw folder by going to the res folder -- Directory -- raw. I have also copied a song in my raw folder however when I am coding in my Main Activity and I type (this, R.raw.bomdiggy), the "raw" comes up in red and I have done lots of research on how to correct this error however I have not been able to. My main problem is that, when I type "R." I don't get an option for my raw folder.



This is my error code:



java.io.FileNotFoundException: /system/usr/hyphen-data/hyph-en- 
us.pat.txt: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:452)
at libcore.io.IoUtils$FileReader.<init>(IoUtils.java:207)
at libcore.io.IoUtils.readFileAsString(IoUtils.java:114)
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96)
at android.text.Hyphenator.init(Hyphenator.java:154)
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207)
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
at libcore.io.IoBridge.open(IoBridge.java:438)
at libcore.io.IoUtils$FileReader.<init>(IoUtils.java:207) 
at libcore.io.IoUtils.readFileAsString(IoUtils.java:114) 
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96) 
at android.text.Hyphenator.init(Hyphenator.java:154) 
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207) 
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)


And this is my Main Activity code:



MediaPlayer ring;
ring = MediaPlayer.create(this,R.raw.bomdiggy);
ring.start(); 


This tell me that a file like this does not exist, however I have already created such a folder. Is it due to my API level?










share|improve this question















I have previously created a raw folder by going to the res folder -- Directory -- raw. I have also copied a song in my raw folder however when I am coding in my Main Activity and I type (this, R.raw.bomdiggy), the "raw" comes up in red and I have done lots of research on how to correct this error however I have not been able to. My main problem is that, when I type "R." I don't get an option for my raw folder.



This is my error code:



java.io.FileNotFoundException: /system/usr/hyphen-data/hyph-en- 
us.pat.txt: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:452)
at libcore.io.IoUtils$FileReader.<init>(IoUtils.java:207)
at libcore.io.IoUtils.readFileAsString(IoUtils.java:114)
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96)
at android.text.Hyphenator.init(Hyphenator.java:154)
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207)
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
at libcore.io.IoBridge.open(IoBridge.java:438)
at libcore.io.IoUtils$FileReader.<init>(IoUtils.java:207) 
at libcore.io.IoUtils.readFileAsString(IoUtils.java:114) 
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96) 
at android.text.Hyphenator.init(Hyphenator.java:154) 
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207) 
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)


And this is my Main Activity code:



MediaPlayer ring;
ring = MediaPlayer.create(this,R.raw.bomdiggy);
ring.start(); 


This tell me that a file like this does not exist, however I have already created such a folder. Is it due to my API level?







api android-studio android-mediaplayer






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 20 at 8:39









halfer

14.2k758106




14.2k758106










asked Nov 20 at 0:51









Harsh Banthia

21




21












  • Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.
    – halfer
    Nov 20 at 8:39










  • This appears to be the third time I have asked you not to add begging messages, and yet here you are, adding begging messages to the title. This is considered especially poor form here. Bear in mind that if you garner a sufficient number of downvotes, an automatic question ban may be applied. And remember, it is only urgent for you, and for nobody else at all.
    – halfer
    Nov 20 at 8:41




















  • Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.
    – halfer
    Nov 20 at 8:39










  • This appears to be the third time I have asked you not to add begging messages, and yet here you are, adding begging messages to the title. This is considered especially poor form here. Bear in mind that if you garner a sufficient number of downvotes, an automatic question ban may be applied. And remember, it is only urgent for you, and for nobody else at all.
    – halfer
    Nov 20 at 8:41


















Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.
– halfer
Nov 20 at 8:39




Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.
– halfer
Nov 20 at 8:39












This appears to be the third time I have asked you not to add begging messages, and yet here you are, adding begging messages to the title. This is considered especially poor form here. Bear in mind that if you garner a sufficient number of downvotes, an automatic question ban may be applied. And remember, it is only urgent for you, and for nobody else at all.
– halfer
Nov 20 at 8:41






This appears to be the third time I have asked you not to add begging messages, and yet here you are, adding begging messages to the title. This is considered especially poor form here. Bear in mind that if you garner a sufficient number of downvotes, an automatic question ban may be applied. And remember, it is only urgent for you, and for nobody else at all.
– halfer
Nov 20 at 8:41



















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53384711%2fr-raw-folder-denied-access%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53384711%2fr-raw-folder-denied-access%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

Refactoring coordinates for Minecraft Pi buildings written in Python