This commit is contained in:
jens 2021-09-18 14:33:31 +02:00
parent 58a2bc45fe
commit 6fcf2f3985
6 changed files with 9 additions and 11 deletions

View File

@ -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.

View File

@ -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" />

View File

@ -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)
{

View File

@ -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" />

View File

@ -6,5 +6,5 @@ dependencyResolutionManagement {
jcenter() // Warning: this repository is going to shut down soon
}
}
rootProject.name = "SmsExport"
rootProject.name = "MessageExport"
include ':app'