0

here my code.where is my errors errors.the エラーは file not found 例外です。

Uri video = Uri.parse("android.resource://com.ring.app/raw/"+a[i]+".mp3");
file= new File(video.toString());
try 
{ 
inputStream= new FileInputStream(file);
fos = super.openFileOutput("output"+i+".mp3", MODE_WORLD_READABLE);
byte buffer[]=new byte[1024];
while((len=inputStream.read(buffer))>0)
fos.write(buffer,0,len);
fos.close();
} 
4

1 に答える 1

2
String uri = "android.resource://" + getPackageName() + "/"+R.raw.filename;
于 2012-05-03T14:37:21.073 に答える