Reputation: 5212
When I try to read file from sdcard I get an error source not found.
private void merge2WavFiles(String wavFile1, String wavFile2, String newWavFilePath) {
try {
AudioInputStream clip1 = AudioSystem.getAudioInputStream(new File(wavFile1));
I can't get the audio input stream... Of course the file exists. what could be the problem?
EDIT: The error is source not found (instead of file not found)
Using LogCat I managed to find the error:
ERROR/AndroidRuntime(311): java.lang.NoClassDefFoundError: javax.sound.sampled.AudioSystem
How can I fix this?
Upvotes: 0
Views: 1187
Reputation: 5212
The solution to my problem is simple...Android dosen't support the javax.sound.sampled.AudioSystem anymore
Upvotes: 0
Reputation: 7385
Take a look here about how to access files on SD card. And here about manifest file permissions. Hope that helps.
Upvotes: 3