diff --git a/res/values/strings.xml b/res/values/strings.xml
index ca4df33d2..31d2b540c 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -472,6 +472,9 @@ Skipped %d tasks.\n
Last backup failed: %s
+
+ Last backup failed, could not read SD card
+
Latest backup was on %s
diff --git a/src/com/timsu/astrid/utilities/BackupService.java b/src/com/timsu/astrid/utilities/BackupService.java
index a212c25e4..4ab989f83 100644
--- a/src/com/timsu/astrid/utilities/BackupService.java
+++ b/src/com/timsu/astrid/utilities/BackupService.java
@@ -57,9 +57,14 @@ public class BackupService extends Service {
DateUtilities.getFormattedDate(ctx.getResources(), new Date())));
} catch (Exception e) {
// unable to backup.
- Preferences.setBackupSummary(ctx,
+ if(e == null || e.getMessage() == null) {
+ Preferences.setBackupSummary(ctx,
+ ctx.getString(R.string.prefs_backup_desc_failure_null));
+ } else {
+ Preferences.setBackupSummary(ctx,
ctx.getString(R.string.prefs_backup_desc_failure,
- e.getMessage()));
+ e.toString()));
+ }
}
}
@@ -71,7 +76,7 @@ public class BackupService extends Service {
if (!Preferences.isBackupEnabled(ctx)) {
return;
}
- am.setInexactRepeating(AlarmManager.RTC, System.currentTimeMillis() + BACKUP_OFFSET,
+ am.setRepeating(AlarmManager.RTC, System.currentTimeMillis() + 10000,
BACKUP_INTERVAL, pendingIntent);
}