-
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| # RCS Exporter | ||||
| # MessageExporter | ||||
|  | ||||
| I had been using the app SMS Backup & Restore for quite a while. After getting a new phone and using the app to transfer the messages over as I was used to, I noticed some messages were missing. | ||||
|  | ||||
|   | ||||
| @@ -19,8 +19,7 @@ | ||||
|         <activity | ||||
|             android:name="de.server47.messageexport.MainActivity" | ||||
|             android:exported="true" | ||||
|             android:label="@string/app_name" | ||||
|             android:theme="@style/Theme.RcsExport.NoActionBar"> | ||||
|             android:label="@string/app_name"> | ||||
|             <intent-filter> | ||||
|                 <action android:name="android.intent.action.MAIN" /> | ||||
|  | ||||
|   | ||||
| @@ -37,6 +37,8 @@ public class MainActivity extends Activity | ||||
|  | ||||
|     final static int requestCodeExport = 815; | ||||
|  | ||||
|     long messageCount = 0; | ||||
|  | ||||
|     @Override | ||||
|     protected void onCreate(@Nullable Bundle savedInstanceState) | ||||
|     { | ||||
| @@ -96,6 +98,8 @@ public class MainActivity extends Activity | ||||
|  | ||||
|         if(response.size() > 0) | ||||
|         { | ||||
|             messageCount = response.size(); | ||||
|  | ||||
|             StringBuilder export = new StringBuilder(); | ||||
|  | ||||
|             export.append("<?xml-stylesheet type=\"text/xsl\" href=\"sms.xsl\"?>"); | ||||
| @@ -177,7 +181,7 @@ public class MainActivity extends Activity | ||||
|                 out.write(content.getBytes()); | ||||
|                 out.close(); | ||||
|  | ||||
|                 Toast.makeText(MainActivity.this, "Export complete.", Toast.LENGTH_LONG).show(); | ||||
|                 Toast.makeText(MainActivity.this, "Export complete. " + String.valueOf(messageCount) + " messages have been exported.", Toast.LENGTH_LONG).show(); | ||||
|             } | ||||
|             catch (IOException e) | ||||
|             { | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| <resources> | ||||
|     <string name="app_name">MessageExport</string> | ||||
|     <string name="app_name">Message Export</string> | ||||
|     <string name="action_settings">Settings</string> | ||||
|     <!-- Strings used for fragments for navigation --> | ||||
|     <string name="first_fragment_label">First Fragment</string> | ||||
|   | ||||
| @@ -14,11 +14,6 @@ | ||||
|         <!-- Customize your theme here. --> | ||||
|     </style> | ||||
|  | ||||
|     <style name="Theme.RcsExport.NoActionBar"> | ||||
|         <item name="windowActionBar">false</item> | ||||
|         <item name="windowNoTitle">true</item> | ||||
|     </style> | ||||
|  | ||||
|     <style name="Theme.SmsExport.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" /> | ||||
|  | ||||
|     <style name="Theme.SmsExport.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" /> | ||||
|   | ||||
| @@ -6,5 +6,5 @@ dependencyResolutionManagement { | ||||
|         jcenter() // Warning: this repository is going to shut down soon | ||||
|     } | ||||
| } | ||||
| rootProject.name = "SmsExport" | ||||
| rootProject.name = "MessageExport" | ||||
| include ':app' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user