-
This commit is contained in:
parent
58a2bc45fe
commit
6fcf2f3985
@ -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.
|
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
|
<activity
|
||||||
android:name="de.server47.messageexport.MainActivity"
|
android:name="de.server47.messageexport.MainActivity"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name">
|
||||||
android:theme="@style/Theme.RcsExport.NoActionBar">
|
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
|
||||||
|
@ -37,6 +37,8 @@ public class MainActivity extends Activity
|
|||||||
|
|
||||||
final static int requestCodeExport = 815;
|
final static int requestCodeExport = 815;
|
||||||
|
|
||||||
|
long messageCount = 0;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(@Nullable Bundle savedInstanceState)
|
protected void onCreate(@Nullable Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
@ -96,6 +98,8 @@ public class MainActivity extends Activity
|
|||||||
|
|
||||||
if(response.size() > 0)
|
if(response.size() > 0)
|
||||||
{
|
{
|
||||||
|
messageCount = response.size();
|
||||||
|
|
||||||
StringBuilder export = new StringBuilder();
|
StringBuilder export = new StringBuilder();
|
||||||
|
|
||||||
export.append("<?xml-stylesheet type=\"text/xsl\" href=\"sms.xsl\"?>");
|
export.append("<?xml-stylesheet type=\"text/xsl\" href=\"sms.xsl\"?>");
|
||||||
@ -177,7 +181,7 @@ public class MainActivity extends Activity
|
|||||||
out.write(content.getBytes());
|
out.write(content.getBytes());
|
||||||
out.close();
|
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)
|
catch (IOException e)
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<resources>
|
<resources>
|
||||||
<string name="app_name">MessageExport</string>
|
<string name="app_name">Message Export</string>
|
||||||
<string name="action_settings">Settings</string>
|
<string name="action_settings">Settings</string>
|
||||||
<!-- Strings used for fragments for navigation -->
|
<!-- Strings used for fragments for navigation -->
|
||||||
<string name="first_fragment_label">First Fragment</string>
|
<string name="first_fragment_label">First Fragment</string>
|
||||||
|
@ -14,11 +14,6 @@
|
|||||||
<!-- Customize your theme here. -->
|
<!-- Customize your theme here. -->
|
||||||
</style>
|
</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.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
|
||||||
|
|
||||||
<style name="Theme.SmsExport.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
|
<style name="Theme.SmsExport.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
|
||||||
|
@ -6,5 +6,5 @@ dependencyResolutionManagement {
|
|||||||
jcenter() // Warning: this repository is going to shut down soon
|
jcenter() // Warning: this repository is going to shut down soon
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rootProject.name = "SmsExport"
|
rootProject.name = "MessageExport"
|
||||||
include ':app'
|
include ':app'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user