Hi, I want to add audio file to my content provider, but there are always having FileNotFoundException when reading the file uri
My sample as below. please tell me if you have any suggestion, thanks! //set uri String path = getVoicePath(); // voice file path Uri voiceUri = android.provider.MediaStore.Audio.Media.getContentUri (path); byte[] data = null; //write data OutputStream outStream = getContentResolver().openOutputStream (voiceUri); outStream.write(data); outStream.close(); ... // put data contentValue.put(TaskProvider.TASK_NOTE_VOICE, data); //Exception java.io.FileNotFoundException: No entry for content://media//sdcard/task/20090421-104441.3gpp/audio/media --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

