fix #47 backup the entire database

This commit is contained in:
Max Lv
2014-02-18 19:45:24 +08:00
parent cf60b54d91
commit 97b107eb3f
5 changed files with 25 additions and 84 deletions
@@ -105,22 +105,6 @@ trait BaseService {
})
}
def getPid(name: String): Int = {
try {
val reader: BufferedReader = new BufferedReader(new FileReader(Path.BASE + name + ".pid"))
val line = reader.readLine
return Integer.valueOf(line)
} catch {
case e: FileNotFoundException =>
Log.e(getTag, "Cannot open pid file: " + name)
case e: IOException =>
Log.e(getTag, "Cannot read pid file: " + name)
case e: NumberFormatException =>
Log.e(getTag, "Invalid pid", e)
}
-1
}
def initSoundVibrateLights(notification: Notification) {
notification.sound = null
}