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 )
精彩评论