Skip to content

Update GPX export path to Documents folder for user accessibility #458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Nov 19, 2024

Conversation

Andyporras
Copy link
Member

@Andyporras Andyporras commented Nov 6, 2024

This pull request modifies the GPX export path to ensure files are saved in a visible and accessible location for the user. Previously, files were exported to a default location that was not accessible, making it difficult for users to locate them. With this update, GPX files are saved in the Downloads folder, improving the user experience.

Compatibility: The solution has been tested and works up to the latest version of Android 14.

Important Note: This PR depends on the approval of #457 'Updating the target SDK to 35 with the necessary changes in dependencies, permissions and execution flows'. Please make sure to approve PR #457 before proceeding with this one."

Issues solved:

Andyporras and others added 2 commits November 1, 2024 20:00
Modifies the GPX export path to save files in a user-accessible location. Previously, files were exported to a default location that was not visible to the user, making access difficult. Exports are now saved in the Downloads folder. The solution works up to the latest version, Android 14.

Co-Authored-By: Kevin Salazar <[email protected]>
@Andyporras
Copy link
Member Author

Andyporras commented Nov 15, 2024

This pull request modifies the GPX export path to ensure files are saved in a visible and accessible location for the user. Previously, files were exported to a default location that was not accessible, making it difficult for users to locate them. With this update, GPX files are saved in the Downloads folder, improving the user experience.

Compatibility: The solution has been tested and works up to the latest version of Android 14.

Important Note: This PR depends on the approval of #457 'Updating the target SDK to 35 with the necessary changes in dependencies, permissions and execution flows'. Please make sure to approve PR #457 before proceeding with this one."

Issues solved:

I wanted to provide some context regarding this PR, "Update GPX export path to Downloads folder for user accessibility #458," in relation to PR #443 ("GPX export not working").

While both PRs address the GPX export functionality, there are a few key differences:

Export Location: This PR updates the export path to the Downloads folder for improved user accessibility, whereas PR #443 saves files in the Documents directory.

UI Message Update: This PR also modifies the message to accurately reflect the new export location, ensuring better clarity for users.

That said, if PR #443 is accepted as is, this PR may not be necessary, as both resolve the core issue of the GPX export functionality. However, I believe the choice of export location (Downloads vs. Documents) and the updated UI message could be factors to consider in making the final decision.

Let me know if further clarification or adjustments are needed!

@FR3DD221
Copy link
Contributor

Works perfectly! @Andyporras

@Kevin-Salazar-itcr
Copy link
Contributor

Hello!
It works successfully! TY @Andyporras

@Binnette
Copy link
Collaborator

Hi @Andyporras Can you please update your PR. You have some conflicts with the previous PR #451 which was already addressing (part?) of this issue.

@Binnette
Copy link
Collaborator

In PR #451 storage have been set to DIRECTORY_DOCUMENTS. I think it is a way better idea than download. As download can be messy due to user many downloading files from web, etc.

@Andyporras
Copy link
Member Author

En PR #451 el almacenamiento se ha establecido en DIRECTORY_DOCUMENTS. Creo que es una idea mucho mejor que descargar. Como la descarga puede ser desordenada debido a que el usuario descarga muchos archivos de la web, etc.

Thank you for pointing this out. I’ll review the conflicts with PR #451 and make the necessary updates to ensure compatibility.

If we agree that DIRECTORY_DOCUMENTS is a better location, I can adjust this PR to align with the changes introduced in PR #451. I’ll update the implementation accordingly and re-test to ensure everything works seamlessly.

I’ll notify you once the conflicts are resolved and the PR is updated. Thank you for the feedback!

@Andyporras Andyporras changed the title Update GPX export path to Downloads folder for user accessibility Update GPX export path to Documents folder for user accessibility Nov 19, 2024
Changed the GPX export location to the Documents folder for better organization and user accessibility, as per feedback. Adjusted related strings and resolved conflicts with PR labexp#451
@Andyporras
Copy link
Member Author

@Binnette

I’ve resolved the conflicts and updated the logic to ensure that GPX files are saved in the Documents directory. Additionally, I’ve updated the UI message to "Public directory (in documents)" to make it clear to the user where the files are being stored.

Let me know if you need any further adjustments!

Copy link
Collaborator

@Binnette Binnette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Andyporras, please read my review. Also use tab "Files changes" on your PR to saw a sumup of your changes.

@Binnette
Copy link
Collaborator

In the end, you implemented the same code as in PR #451. I will accept your PR for the logs, etc.

@Andyporras
Copy link
Member Author

@Binnette I have already made the changes you suggested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants