我试图获取内部文件的最后修改日期,它总是返回0,虽然我可以正确读取文件.如果我做错了什么,你能告诉我吗?
FileOutputStream Os = activity.openFileOutput("file1.jpg",Context.MODE_PRIVATE);
cachedImage.compress(CompressFormat.JPEG,75,Os);
Os.close();
long mod_time = 0;
File file = new File("file1".jpg");
mod_time = file.lastModified();
FileInputStream Is = activity.openFileInput("file1.jpg");
cachedImage = BitmapFactory.decodeStream(Is);
Is.close() ;
mod_time总是零!!!!