forked from jens/Automation
miscellaneous
This commit is contained in:
parent
31c4f6c1d1
commit
604ab0eb43
2
.idea/deploymentTargetDropDown.xml
generated
2
.idea/deploymentTargetDropDown.xml
generated
@ -12,6 +12,6 @@
|
|||||||
</deviceKey>
|
</deviceKey>
|
||||||
</Target>
|
</Target>
|
||||||
</targetSelectedWithDropDown>
|
</targetSelectedWithDropDown>
|
||||||
<timeTargetWasSelectedWithDropDown value="2021-09-24T23:07:53.935197300Z" />
|
<timeTargetWasSelectedWithDropDown value="2021-11-07T11:58:40.808135100Z" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
@ -201,6 +201,9 @@ public class ActivityMaintenance extends Activity
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
XmlFileInterface.readFile();
|
XmlFileInterface.readFile();
|
||||||
|
ActivityMainPoi.getInstance().updateListView();
|
||||||
|
ActivityMainRules.getInstance().updateListView();
|
||||||
|
ActivityMainProfiles.getInstance().updateListView();
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
@ -314,18 +317,9 @@ public class ActivityMaintenance extends Activity
|
|||||||
|
|
||||||
String subject = "Automation logs";
|
String subject = "Automation logs";
|
||||||
|
|
||||||
StringBuilder emailBody = new StringBuilder();
|
|
||||||
emailBody.append("Device details" + Miscellaneous.lineSeparator);
|
|
||||||
emailBody.append("OS version: " + System.getProperty("os.version") + Miscellaneous.lineSeparator);
|
|
||||||
emailBody.append("API Level: " + android.os.Build.VERSION.SDK + Miscellaneous.lineSeparator);
|
|
||||||
emailBody.append("Device: " + android.os.Build.DEVICE + Miscellaneous.lineSeparator);
|
|
||||||
emailBody.append("Model: " + android.os.Build.MODEL + Miscellaneous.lineSeparator);
|
|
||||||
emailBody.append("Product: " + android.os.Build.PRODUCT);
|
|
||||||
emailBody.append("Flavor: " + BuildConfig.FLAVOR);
|
|
||||||
|
|
||||||
Uri uri = Uri.parse("content://com.jens.automation2/" + Settings.zipFileName);
|
Uri uri = Uri.parse("content://com.jens.automation2/" + Settings.zipFileName);
|
||||||
|
|
||||||
Miscellaneous.sendEmail(ActivityMaintenance.this, "android-development@gmx.de", "Automation logs", emailBody.toString(), uri);
|
Miscellaneous.sendEmail(ActivityMaintenance.this, "android-development@gmx.de", "Automation logs", getSystemInfo(), uri);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
alertDialogBuilder.setNegativeButton(context.getResources().getString(R.string.no), null);
|
alertDialogBuilder.setNegativeButton(context.getResources().getString(R.string.no), null);
|
||||||
@ -334,6 +328,19 @@ public class ActivityMaintenance extends Activity
|
|||||||
return alertDialog;
|
return alertDialog;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static String getSystemInfo()
|
||||||
|
{
|
||||||
|
StringBuilder systemInfoText = new StringBuilder();
|
||||||
|
systemInfoText.append("Device details" + Miscellaneous.lineSeparator);
|
||||||
|
systemInfoText.append("OS version: " + System.getProperty("os.version") + Miscellaneous.lineSeparator);
|
||||||
|
systemInfoText.append("API Level: " + android.os.Build.VERSION.SDK + Miscellaneous.lineSeparator);
|
||||||
|
systemInfoText.append("Device: " + android.os.Build.DEVICE + Miscellaneous.lineSeparator);
|
||||||
|
systemInfoText.append("Model: " + android.os.Build.MODEL + Miscellaneous.lineSeparator);
|
||||||
|
systemInfoText.append("Product: " + android.os.Build.PRODUCT);
|
||||||
|
systemInfoText.append("Flavor: " + BuildConfig.FLAVOR);
|
||||||
|
return systemInfoText.toString();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onResume()
|
protected void onResume()
|
||||||
{
|
{
|
||||||
|
@ -199,6 +199,7 @@ public class AutomationService extends Service implements OnInitListener
|
|||||||
if (checkStartupRequirements(this, startAtBoot))
|
if (checkStartupRequirements(this, startAtBoot))
|
||||||
{
|
{
|
||||||
Miscellaneous.logEvent("i", "Service", this.getResources().getString(R.string.logServiceStarting) + " VERSION_CODE: " + BuildConfig.VERSION_CODE + ", VERSION_NAME: " + BuildConfig.VERSION_NAME + ", flavor: " + BuildConfig.FLAVOR, 1);
|
Miscellaneous.logEvent("i", "Service", this.getResources().getString(R.string.logServiceStarting) + " VERSION_CODE: " + BuildConfig.VERSION_CODE + ", VERSION_NAME: " + BuildConfig.VERSION_NAME + ", flavor: " + BuildConfig.FLAVOR, 1);
|
||||||
|
Miscellaneous.logEvent("i", "Service", ActivityMaintenance.getSystemInfo(), 1);
|
||||||
|
|
||||||
startUpRoutine();
|
startUpRoutine();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user