FM: Show recording file path.
- Show a toast message where the FM recording file stored
while FM recording stopped.
CRs-Fixed: 497432
Change-Id: I22ebf360ce41bdfaa239b186e03dc700b3886628
diff --git a/fmapp/res/values/strings.xml b/fmapp/res/values/strings.xml
index b1dd448..f293047 100644
--- a/fmapp/res/values/strings.xml
+++ b/fmapp/res/values/strings.xml
@@ -261,5 +261,6 @@
<string name="rt_plus_tags">Tags</string>
<string name="enter_RxRePeatCount">Enter RxRePeat count</string>
<string name="set_RxRePeatCount">Config RxRePeat count</string>
+ <string name="save_record_file">FM Recorded file saved to "<xliff:g id="record_file">%1$s</xliff:g>"</string>
</resources>
diff --git a/fmapp/src/com/codeaurora/fmradio/FMRadioService.java b/fmapp/src/com/codeaurora/fmradio/FMRadioService.java
index 20f0262..5f2b42b 100644
--- a/fmapp/src/com/codeaurora/fmradio/FMRadioService.java
+++ b/fmapp/src/com/codeaurora/fmradio/FMRadioService.java
@@ -983,6 +983,8 @@
if (Environment.MEDIA_MOUNTED.equals(state)) {
try {
this.addToMediaDB(mSampleFile);
+ Toast.makeText(this,getString(R.string.save_record_file, mSampleFile.getAbsolutePath()),
+ Toast.LENGTH_LONG).show();
}
catch(Exception e) {
e.printStackTrace();