我是在外部存储中完成此操作的,但在谈到Android手机的内部存储时却无法弄清楚。
The Android Developer guide contains a section on using internal storage. You can find it here .
Use App Storage Directory using getFilesDir() as:
SDCardpath = getFilesDir();
myDataPath = new File(SDCardpath.getAbsolutePath()
+ "/.My Recordings");
// mydir = context.getDir("media", Context.MODE_PRIVATE);
if (!myDataPath.exists())
myDataPath.mkdir();
audiofile = new File(myDataPath + "/" + fileName);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.