强行删除文件代码
public static boolean forceDelete(File f)
{
boolean result = false;
int tryCount = 0;
while(!result && tryCount++ <10)
{
System.gc();
result = f.delete();
}
return result;
}