There a.ogg file is there inside the raw folder. I dont know whats wrong with it. I have checked several times.
On Apr 28, 7:44 am, Nithin <nithin.war...@gmail.com> wrote: > The error is, > > Resources > $NotFoundException: File res/raw/a.ogg from drawable resource ID > #0x7f040000 > > check whether you properly place your a.ogg file in raw folder > > Nithin > > On Apr 28, 4:22 pm, AJ <ajeet.invinci...@gmail.com> wrote: > > > > > > > Paste some sample code so the people can actually see what is missing > > from your code. > > > Thanks, > > AJ > > > On Apr 28, 2:16 pm,arberb<beqi...@gmail.com> wrote: > > > > At the moment im working on an application which uses audio files and > > > the issue is when ever my audio file gets called it gives me this > > > error: > > > > 20:51:12.061 916 ERROR AndroidRuntime Uncaught handler: thread > > > main > > > exiting due to uncaught exception > > > 20:51:12.092 916 ERROR AndroidRuntime > > > java.lang.RuntimeException: > > > Unable to start activity ComponentInfo{org.me.zx/ > > > org.me.zx.MainActivity}: android.content.res.Resources > > > $NotFoundException: File res/raw/a.ogg from drawable resource ID > > > #0x7f040000 > > > 20:51:12.092 916 ERROR AndroidRuntime at > > > android.app.ActivityThread.performLaunchActivity(ActivityThread.java: > > > 2268) > > > 20:51:12.092 916 ERROR AndroidRuntime at > > > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: > > > 2284) > > > 20:51:12.092 916 ERROR AndroidRuntime at > > > android.app.ActivityThread.access$1800(ActivityThread.java:112) > > > 20:51:12.092 916 ERROR AndroidRuntime at > > > android.app.ActivityThread > > > $H.handleMessage(ActivityThread.java:1692) > > > 20:51:12.092 916 ERROR AndroidRuntime at > > > android.os.Handler.dispatchMessage(Handler.java:99) > > > 20:51:12.092 916 ERROR AndroidRuntime at > > > android.os.Looper.loop(Looper.java:123) > > > 20:51:12.092 916 ERROR AndroidRuntime at > > > android.app.ActivityThread.main(ActivityThread.java:3948) > > > 20:51:12.092 916 ERROR AndroidRuntime at > > > java.lang.reflect.Method.invokeNative(Native Method) > > > 20:51:12.092 916 ERROR AndroidRuntime at > > > java.lang.reflect.Method.invoke(Method.java:521) > > > 20:51:12.092 916 ERROR AndroidRuntime at > > > com.android.internal.os.ZygoteInit > > > $MethodAndArgsCaller.run(ZygoteInit.java:782) > > > 20:51:12.092 916 ERROR AndroidRuntime at > > > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) > > > 20:51:12.092 916 ERROR AndroidRuntime at > > > dalvik.system.NativeStart.main(Native Method) > > > 20:51:12.092 916 ERROR AndroidRuntime Caused by: > > > android.content.res.Resources$NotFoundException: File res/raw/a.ogg > > > from drawable resource ID #0x7f040000 > > > 20:51:12.092 916 ERROR AndroidRuntime at > > > android.content.res.Resources.openRawResourceFd(Resources.java:814) > > > 20:51:12.092 916 ERROR AndroidRuntime at > > > android.media.SoundPool.load(SoundPool.java:172) > > > 20:51:12.092 916 ERROR AndroidRuntime at > > > org.me.zx.SoundManager.addSound(SoundManager.java:27) > > > 20:51:12.092 916 ERROR AndroidRuntime at > > > org.me.zx.MainActivity.onCreate(MainActivity.java:22) > > > 20:51:12.092 916 ERROR AndroidRuntime at > > > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: > > > 1123) > > > 20:51:12.092 916 ERROR AndroidRuntime at > > > android.app.ActivityThread.performLaunchActivity(ActivityThread.java: > > > 2231) > > > 20:51:12.092 916 ERROR AndroidRuntime ... 11 more > > > 20:51:12.092 916 ERROR AndroidRuntime Caused by: > > > java.io.FileNotFoundException: This file can not be opened as a file > > > descriptor; it is probably compressed > > > 20:51:12.092 916 ERROR AndroidRuntime at > > > android.content.res.AssetManager.openNonAssetFdNative(Native Method) > > > 20:51:12.092 916 ERROR AndroidRuntime at > > > android.content.res.AssetManager.openNonAssetFd(AssetManager.java:412) > > > 20:51:12.092 916 ERROR AndroidRuntime at > > > android.content.res.Resources.openRawResourceFd(Resources.java:811) > > > 20:51:12.092 916 ERROR AndroidRuntime ... 16 more > > > > This is what I have tried: > > > -Using MediaPlayer > > > -Using Audio Player > > > -Trying MP3 files, OGG, WAV Files > > > -Using eclispe to compile instead of netbeans > > > -Deleting my raw folder and adding the files again > > > -Deleting my R.java file > > > > The file is only 2kb mp3 and 30kb .ogg and 130kb wav > > > > Does anyone have any suggestions on how do I fix this? > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Android Developers" group. > > > To post to this group, send email to android-developers@googlegroups.com > > > To unsubscribe from this group, send email to > > > android-developers+unsubscr...@googlegroups.com > > > For more options, visit this group > > > athttp://groups.google.com/group/android-developers?hl=en > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com > > For more options, visit this group > > athttp://groups.google.com/group/android-developers?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en Ill post a sample of my code when I get home. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en