解决方案 »

  1.   

    不能播放多半是因为系统没找到,你那样做是有问题的,你仔细看看 File file = new File(sdCard, "recording.3gpp");这个重载方法的用法。
    下面2句应该可以解决你的问题。
         String sdCard = Environment.getExternalStorageDirectory().getPath();
         File file = new File(sdCard + "/MUSIC/recording.3gpp");
    简写:
         File file = new File(Environment.getExternalStorageDirectory().getPath()+ "/MUSIC/recording.3gpp");
      

  2.   

    byte[] b = new byte[(int) file.length()];
    这里应改成byte[] b = new byte[(long) file.length()];
    int类型不一定放得下文件总字节长度。