Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds the ability to save logs locally in the mobile storage.
Fixes: #1864
There are times one may need to save their logs for their own reference.
There are times one may want to submit logs to someone other than the lead developer.
There has been a request by someone who used a full Android watch claiming that the font size was so small on their screen that they could see nothing in the logs.
The output is saved in the /Download/xDrip-export folder, which is where the settings file is saved.
The same as the settings file, the output overwrites the previous export.
The new method packLogs packages the logs. The content used to be inside the SendFeedBack file. The new method is in EventLogActivity file that calls both SendFeedBack and the new SendLogs methods. This way, the same pack method is used for both options to minimize code duplications.
This is what the Event Logs page looks like after this with a new button at the bottom for saving the logs instead of sending the,
The send feedback page shows a new warning at the top, which is also shown on the save logs page.
Other than this new warning, nothing has changed on the send feedback page.
The new save logs page is shown below.
The warning is translated so that users can understand better. And considering the warning is for users, not for developers, it makes sense to translate it.
The logs themselves remain in English as they should be.
Tests:
Tested with Android 8, 9, 11 and 15.
For testing the existing function of sending the logs to you, I did send logs about an hour ago. There has been a slight change to the format of the logs that you receive. Please look at what you got and tell me if it is broken.
If there is anything you don't like, please tell me.
Thanks