开发者

Using phone memory instead of SDCARD [duplicate]

This question already has an answer here: Closed 11 years ago.

Possible Duplicate:

Android how to create file in Phone memory

I am recording my voice in android using MediaRecorder,But am using SDCARD开发者_运维知识库 to store this recorded voice.I want to use phone memory instead of SDCARD. recorder.setOutputFile("/sdcard//a.wav); how can i use phone memory here instead of sdcard where "recorder" is a MediaRecorder object.


Try using the methods in the Context class

Context.getFilesDir()
Context.openFileOutput( name, mode )
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜