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?
api
![](http://i.stack.imgur.com/ez2Mg.png)
add a comment |
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?
api
![](http://i.stack.imgur.com/ez2Mg.png)
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
add a comment |
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?
api
![](http://i.stack.imgur.com/ez2Mg.png)
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
![](http://i.stack.imgur.com/ez2Mg.png)
api
![](http://i.stack.imgur.com/ez2Mg.png)
edited Nov 20 at 8:39
![](https://i.stack.imgur.com/4rtxd.png?s=32&g=1)
![](https://i.stack.imgur.com/4rtxd.png?s=32&g=1)
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
add a comment |
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
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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