I want to write a wav audio file using randomacessfile, but when i check through DDMS i find no such file in the sd card. What is the problem with this?
I also wrote permission to write in external storage in the manifest file: <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> Here is my code: private RandomAccessFile randomAccessWriter; File f=new File(mFileName); randomAccessWriter = new RandomAccessFile(f, "rw"); randomAccessWriter.setLength(0); // Set file length to 0, to prevent unexpected behavior in case the file already existed randomAccessWriter.writeBytes("RIFF"); randomAccessWriter.writeInt(0); randomAccessWriter.writeBytes("WAVE"); randomAccessWriter.writeBytes("fmt "); .......... .......... -- 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