[英]How to store an audio recording into internal storage in android
我是在外部存储中完成此操作的,但在谈到Android手机的内部存储时却无法弄清楚。
Android开发人员指南包含有关使用内部存储的部分。 你可以在这里找到它。
使用getFilesDir()将App Storage Directory用作:
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);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.