- public boolean fileIsExists(){
- try{
- File f=new File("/mnt/sdcard/update/up.zip");//文件绝对路径
- if(!f.exists()){
- return false;
- }
-
- }catch (Exception e) {
- // TODO: handle exception
- return false;
- }
- return true;
- }
android判断文件是否存在
最新推荐文章于 2024-08-12 03:56:54 发布