diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 4353ed97ec..d42ff626ac 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -68,12 +68,15 @@
-
+
+
+
-
+
+
+
+
+
\ No newline at end of file
diff --git a/res/layout/export_fragment.xml b/res/layout/export_fragment.xml
new file mode 100644
index 0000000000..8056164f58
--- /dev/null
+++ b/res/layout/export_fragment.xml
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/res/layout/import_export_activity.xml b/res/layout/import_export_activity.xml
new file mode 100644
index 0000000000..e4f29211d5
--- /dev/null
+++ b/res/layout/import_export_activity.xml
@@ -0,0 +1,6 @@
+
+
\ No newline at end of file
diff --git a/res/layout/import_fragment.xml b/res/layout/import_fragment.xml
new file mode 100644
index 0000000000..f405a29487
--- /dev/null
+++ b/res/layout/import_fragment.xml
@@ -0,0 +1,136 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/res/menu/text_secure_normal.xml b/res/menu/text_secure_normal.xml
index 4cc966d07e..64c5e32d11 100644
--- a/res/menu/text_secure_normal.xml
+++ b/res/menu/text_secure_normal.xml
@@ -13,19 +13,6 @@
android:id="@+id/menu_mark_all_read"
android:icon="@android:drawable/ic_menu_set_as" />
- -
-
-
-
diff --git a/res/values/strings.xml b/res/values/strings.xml
index bc83efa01c..dadc864e1c 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -104,7 +104,62 @@
Key exchange message...
-
+
+
+ Export To SD Card?
+ This
+ will export your encrypted keys, settings, and messages to the SD card.
+
+ Export
+ Export Plaintext To SD Card?
+ Warning, this will
+ export the plaintext contents of your TextSecure messages to the SD card.
+
+ Cancel
+ Exporting
+ Exporting plaintext to SD card...
+
+ Error, unable to write to SD
+ card!
+
+ Error while writing to SD card.
+
+ Success!
+ Exporting encrypted keys,
+ settings, and messages...
+
+
+
+ Import System SMS Database?
+ This will import
+ messages from the system\'s default SMS database to TextSecure. If you\'ve previously
+ imported the system\'s SMS database, importing again will result in duplicated messages.
+
+ Import
+ Cancel
+ Restore Encrypted Backup?
+
+ Restoring an encrypted backup will completely replace your existing keys, preferences, and
+ messages. You will lose any information that\'s in your current TextSecure install but not
+ in the backup.
+
+ Restore
+ Import Plaintext Backup?
+ This will import
+ messages from a plaintext backup. If you\'ve previously imported the system\'s SMS database,
+ importing again will result in duplicated messages.
+
+ Importing
+ Import plaintext backup...
+ No plaintext backup found!
+ Error importing backup!
+ Import complete!
+ Restoring
+ Restoring encrypted backup...
+ No encrypted backup found!
+ Restore complete!
+
+
No scanned key found!
@@ -322,6 +377,26 @@
Updating Database...
+ Export Encrypted Backup
+ Export an encrypted
+ backup to the SD card.
+
+ Export Plaintext Backup
+
+ Export a plaintext backup compatible with \'SMSBackup And Restore\' to the SD card.
+ Import System SMS Database
+ Import the database
+ from the default system messenger app.
+
+ Import Encrypted Backup
+
+ Restore a previously exported encrypted TextSecure backup.
+
+ Import Plaintext Backup
+
+ Import a plaintext backup file. Compatible with \'SMSBackup And Restore.\'
+
+
TEXTSECURE PASSPHRASE
Unlock
diff --git a/res/values/themes.xml b/res/values/themes.xml
index eda774b4b5..e406496bd9 100644
--- a/res/values/themes.xml
+++ b/res/values/themes.xml
@@ -20,8 +20,8 @@