summaryrefslogtreecommitdiffstats
path: root/FMRecord
diff options
context:
space:
mode:
authorVenkateshwarlu Domakonda <vdomak@codeaurora.org>2014-04-17 12:09:21 +0530
committerVenkateshwarlu Domakonda <vdomak@codeaurora.org>2014-04-17 12:09:21 +0530
commit184551f1a10c48326103b49e00a04235e777bed7 (patch)
tree1a3c623072c4c371cffb6b730e76f6cd6cf7f1d5 /FMRecord
parent2a73d76fb46dbef2e5b447f2bd4ea1be30797737 (diff)
downloadandroid_hardware_qcom_fm-184551f1a10c48326103b49e00a04235e777bed7.tar.gz
android_hardware_qcom_fm-184551f1a10c48326103b49e00a04235e777bed7.tar.bz2
android_hardware_qcom_fm-184551f1a10c48326103b49e00a04235e777bed7.zip
FMRecord: Issue with FM record file storage path
Store the FM recording file in FMRecording folder instead of root folder. Change-Id: Ia8448b69df9c532c3f0601e6e708ec7e9f7a8ff3 CRs-Fixed: 638857
Diffstat (limited to 'FMRecord')
-rw-r--r--FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java b/FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java
index fc0fc21..7811070 100644
--- a/FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java
+++ b/FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java
@@ -259,7 +259,10 @@ public class FMRecordingService extends Service {
}
mSampleFile = null;
- File sampleDir = Environment.getExternalStorageDirectory();
+ File sampleDir = new File(Environment.getExternalStorageDirectory().getAbsolutePath() +"/FMRecording");
+
+ if(!(sampleDir.mkdirs() || sampleDir.isDirectory()))
+ return false;
try {
mSampleFile = File.createTempFile("FMRecording", ".3gpp", sampleDir);