Tell me more ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

Good afternoon, my name is David and I have a question regarding on the Gtomee.com website. You see, I'm testing this code using LibGDX, Java, and Eclipse to test the music player that detects the frequency. I saw this one on this website plus the link on GitHub:

http://gtomee.com/2012/07/28/audio-spectrum-visualizer-with-libgdx/

It works when running on desktop project folder but not on Android project folder and the result is this:

10-10 13:57:45.320: E/AndroidRuntime(9421): FATAL EXCEPTION: GLThread 16845
10-10 13:57:45.320: E/AndroidRuntime(9421): com.badlogic.gdx.utils.GdxRuntimeException:     Error copying source file: soundtrack 1 bioman.mp3 (Internal)
10-10 13:57:45.320: E/AndroidRuntime(9421): To destination: tmp/audio-spectrum.mp3 (External)
10-10 13:57:45.320: E/AndroidRuntime(9421):     at com.badlogic.gdx.files.FileHandle.copyFile(FileHandle.java:625)
10-10 13:57:45.320: E/AndroidRuntime(9421):     at com.badlogic.gdx.files.FileHandle.copyTo(FileHandle.java:534)
10-10 13:57:45.320: E/AndroidRuntime(9421):     at com.bodapps.rhythm.Drop.create(Drop.java:393)
10-10 13:57:45.320: E/AndroidRuntime(9421):     at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:292)
10-10 13:57:45.320: E/AndroidRuntime(9421):     at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1505)
10-10 13:57:45.320: E/AndroidRuntime(9421):     at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
10-10 13:57:45.320: E/AndroidRuntime(9421): Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Error stream writing to file: tmp/audio-spectrum.mp3 (External)
10-10 13:57:45.320: E/AndroidRuntime(9421):     at com.badlogic.gdx.files.FileHandle.write(FileHandle.java:313)
10-10 13:57:45.320: E/AndroidRuntime(9421):     at com.badlogic.gdx.files.FileHandle.copyFile(FileHandle.java:623)
10-10 13:57:45.320: E/AndroidRuntime(9421):     ... 5 more
10-10 13:57:45.320: E/AndroidRuntime(9421): Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Error writing file: tmp/audio-spectrum.mp3 (External)
10-10 13:57:45.320: E/AndroidRuntime(9421):     at com.badlogic.gdx.files.FileHandle.write(FileHandle.java:293)
10-10 13:57:45.320: E/AndroidRuntime(9421):     at com.badlogic.gdx.files.FileHandle.write(FileHandle.java:305)
10-10 13:57:45.320: E/AndroidRuntime(9421):     ... 6 more
10-10 13:57:45.320: E/AndroidRuntime(9421): Caused by: java.io.FileNotFoundException: /storage/sdcard0/tmp/audio-spectrum.mp3: open failed: EACCES (Permission denied)
10-10 13:57:45.320: E/AndroidRuntime(9421):     at libcore.io.IoBridge.open(IoBridge.java:416)
10-10 13:57:45.320: E/AndroidRuntime(9421):     at java.io.FileOutputStream.<init>(FileOutputStream.java:88)
10-10 13:57:45.320: E/AndroidRuntime(9421):     at com.badlogic.gdx.files.FileHandle.write(FileHandle.java:289)
10-10 13:57:45.320: E/AndroidRuntime(9421):     ... 7 more
10-10 13:57:45.320: E/AndroidRuntime(9421): Caused by: libcore.io.ErrnoException: open failed: EACCES (Permission denied)
10-10 13:57:45.320: E/AndroidRuntime(9421):     at libcore.io.Posix.open(Native Method)
10-10 13:57:45.320: E/AndroidRuntime(9421):     at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
10-10 13:57:45.320: E/AndroidRuntime(9421):     at libcore.io.IoBridge.open(IoBridge.java:400)
10-10 13:57:45.320: E/AndroidRuntime(9421):     ... 9 more

I'm not sure if I come this to the right place for help and suggestions. Please help me!

share|improve this question
Dave, this site is for apps created using the StackExchange API. If you have a coding question, I suggest you ask on StackOverflow (which you already have an account on). – tombull89 Oct 10 '12 at 15:26
Hi David. I see that you're blocked from asking more questions on Stack Overflow, but unfortunately that's where questions like this are supposed to land. Check out the tips here on how to get unblocked. – Anna Lear Oct 10 '12 at 15:27

closed as off topic by Anna Lear Oct 10 '12 at 15:25

Questions on Stack Apps are expected to generally relate to the Stack Exchange API, applications that use it, or scripts that work with Stack Exchange. See the FAQ for guidance on how to improve it.

You must log in to answer this question.

Browse other questions tagged