且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

尝试检查内部存储中是否存在文件

更新时间:2023-11-25 22:18:22

希望这种方法可以帮到你。

hope this method helps you.

public boolean fileExist(String fname){
    File file = getBaseContext().getFileStreamPath(fname);
    return file.exists();
}