• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Simple Notepad Application for Android OS


Commit MetaInfo

Revision3f5202eec576b8f9e106aaacc33c7b4ba510a78d (tree)
Time2014-07-09 17:57:32
AuthorMasahiko, SAWAI <say@user...>
CommiterMasahiko, SAWAI

Log Message

Added media scan support for database backup file

Change Summary

Incremental Difference

--- a/notepad-app-level-11/src/org/routine_work/notepad/prefs/BackupDatabaseActivity.java
+++ b/notepad-app-level-11/src/org/routine_work/notepad/prefs/BackupDatabaseActivity.java
@@ -24,6 +24,7 @@
2424 package org.routine_work.notepad.prefs;
2525
2626 import android.app.Activity;
27+import android.media.MediaScannerConnection;
2728 import android.os.Bundle;
2829 import android.os.Environment;
2930 import android.text.format.DateFormat;
@@ -107,6 +108,11 @@ public class BackupDatabaseActivity extends Activity
107108 inputChannel.transferTo(0, inputChannel.size(), outputChannel);
108109 inputChannel.close();
109110 outputChannel.close();
111+
112+ MediaScannerConnection.scanFile(this, new String[]
113+ {
114+ backupFilePath.getAbsolutePath()
115+ }, null, null);
110116 }
111117 catch (IOException ex)
112118 {