开发者

Using phone memory instead of SDCARD [duplicate]

开发者 https://www.devze.com 2023-03-22 19:24 出处:网络
This question already has an answer here: Closed 11 years ago. Possible Duplicate: Android how to create file in Phone memory
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

精彩评论

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