@
ljbha007 ,嗯,是写错了,但是不会影响到程序的,
如果你有安装开发环境的话,
建议你试一下,
将一个.3gpp文件 的文件名改长(例如:VOICE_1364290165465GXTX_1364357242049YVJU.3gpp),然后执行
File deletefile= new File(你的文件路径);
if(deletefile.exists()){
Log.d("file:","exists!" );
boolean deleted = deletefile.delete();
Log.d("deleted:",String.valueOf(deleted) );
}else {
Log.d("file:","not exists!" );
}
这里需要加个权限uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
到AndroidManifest.xml 里
试一下到底神马结果