Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:help:v2:settings:storage [2016/05/09 12:45] – [Storage on the external SD card troubleshooting] alpinequesten:help:v2:settings:storage [2023/09/17 14:59] (current) alpinequest
Line 1: Line 1:
-<sub>[[en:help|Online Help]] > [[en:help:v2|AlpineQuest 2.x]] > [[en:help:v2:settings|Settings]]</sub>+<sub>[[en:help:v2|Online Help]] > [[en:help:v2:settings|Settings]] > Data storage</sub>
  
-====== Where does the application store its data? ======+====== Data storage and access ====== 
 + 
 +===== Where does the application store its data? =====
 \\ \\
 The application folder is the unique folder used by the application to store all its data on the user device, including: The application folder is the unique folder used by the application to store all its data on the user device, including:
   * Stored maps for off-line use;   * Stored maps for off-line use;
-  * User landmarks, when using the default landmarks folder; +  * User placemarks, when using the default placemarks folder; 
-  * Imported and exported landmarks, details or map images;+  * Imported and exported placemarks, details or map images;
   * Pictures used in waypoints;   * Pictures used in waypoints;
   * Various technical data.   * Various technical data.
  
 This folder is automatically chosen during the first application start, and is usually located on the external SD card (if available) for devices running Android lower than 4.4, or on the device memory for Android 4.4 and after (SD card storage behavior has considerably changed since then). This folder is automatically chosen during the first application start, and is usually located on the external SD card (if available) for devices running Android lower than 4.4, or on the device memory for Android 4.4 and after (SD card storage behavior has considerably changed since then).
 +
 +Inside the application folder, you'll find the following sub-folders:
 +  * ''**/datastore/**'', where the application stores downloaded data like [[en:help:v2:maps#on-demand_maps|on-demand maps]], [[en:help:v2:elevations#digital_elevation_model_dem|elevations]], etc;
 +  * ''**/icons/**'', where you can store your [[en:help:v2:placemarks:custom-icons|custom icons]];
 +  * ''**/landmarks/**'', where the application stores (by default) the placemarks you create (waypoints, routes, tracks, areas);
 +  * ''**/logs/**'', where the application store its technical logs;
 +  * ''**/maps/**'', where you can store your [[en:help:v2:maps#file-based_maps|file-based maps]];
 +  * ''**/pictures/**'', where the application stores pictures associated with picture waypoints (on some devices these pictures are saved in the device common media folder);
  
 \\ \\
  
-===== How to locate the application folder? =====+==== How to locate the application folder? ====
 \\ \\
 To display the application folder: To display the application folder:
Line 26: Line 36:
 \\ \\
  
-===== How to change the application folder? =====+==== How to change the application folder? ====
 \\ \\
 To modify the storage location: To modify the storage location:
Line 38: Line 48:
 {{:icon_help.png?nolink}} Be careful if you choose a storage location within the ''"**/Android/data/**"'' folder as Android will delete it when you un-install the application. {{:icon_help.png?nolink}} Be careful if you choose a storage location within the ''"**/Android/data/**"'' folder as Android will delete it when you un-install the application.
  
-{{:icon_help.png?nolink}} If you see a small locker {{:icon_06.png?nolink}} icon, it means that the application isn't able to write in this location, and so it cannot be used. Check the troubleshooting section below.+{{:icon_help.png?nolink}} If you see a small locker {{:icon_06.png?nolink}} icon, it means that the application isn't able to write in this location, and so it cannot be used. Check the troubleshooting section below for more details.
  
 {{ :en:help:v2:settings:change-storage.jpg?nolink }} {{ :en:help:v2:settings:change-storage.jpg?nolink }}
Line 44: Line 54:
 \\ \\
  
-==== Storage on the external SD card troubleshooting ====+==== Application folder on the external SD card troubleshooting ====
 \\ \\
-In Android 4.4, the memory management has been modified:+**Android 4.4** 
 +\\ 
 +In Android 4.4 and above, the memory management has been modified:
   * The device internal memory is called "//Primary external memory//". This is the main storage memory, used by default by the application. This memory is usually quite large (up to hundred of GB);   * The device internal memory is called "//Primary external memory//". This is the main storage memory, used by default by the application. This memory is usually quite large (up to hundred of GB);
-  * The SD card external memory (available on some devices only) is called "//Secondary external memory//". This space is not freely editable by applications anymore, only a specific folder per application can be used, as explained below.+  * The SD card external memory (available on some devices only) is called "//Secondary external memory//". This space is not freely editable by applications anymore, only a specific folder per application can be used, that's why you may only have one location available on the external SD card.
  
 +**Android 6.0**
 +\\
 In Android 6.0 and above, you can now grant the application the right to write on the external SD card from the Android settings ("Applications" section). In Android 6.0 and above, you can now grant the application the right to write on the external SD card from the Android settings ("Applications" section).
 +If no storage location choices at all are available on the external SD card:
 +  * Be sure that your device is not currently plugged to a computer using an USB cable;
 +  * Be sure that the SD card is not currently being checked for errors (usually happens after starting the device or removing the USB cable);
 +  * If you have Android 6.0 or above, you must grant the application to write on the external memory from the Android settings ("Applications" section), [[http://www.howtogeek.com/230683/how-to-manage-app-permissions-on-android-6.0/|see more details here]];
 +  * Try to restart the device;
 +  * Try to un-install and re-install the application (be careful if you have stored data you want to keep);
 +  * In the Android settings ("Storage" section), try to un-mount your SD card and check it for errors.
  
-\\ +**Re-using data stored before Android upgrade**
- +
-==== Re-using data stored before Android 4.4 upgrade ====+
 \\ \\
 If you stored data with the application on the external SD card before upgrading to Android 4.4, this data is now read-only and cannot be used any-more. If you stored data with the application on the external SD card before upgrading to Android 4.4, this data is now read-only and cannot be used any-more.
- 
 Here is the solution to retrieve it: Here is the solution to retrieve it:
   * Configure the storage to use the new location on the external SD card as explained above;   * Configure the storage to use the new location on the external SD card as explained above;
Line 63: Line 81:
   * Using your computer's file manager, move all content of the legacy folder (usually ''"**/sdcard/alpinequest/**"'') into the new storage folder (usually ''"**/Android/data/psyberia.alpinequest.full/files/**"'' for the full version). Overwrite all items already present if necessary;   * Using your computer's file manager, move all content of the legacy folder (usually ''"**/sdcard/alpinequest/**"'') into the new storage folder (usually ''"**/Android/data/psyberia.alpinequest.full/files/**"'' for the full version). Overwrite all items already present if necessary;
   * Disconnect your device, wait for the SD card to be checked (if needed), and restart the application. You should then be able to use your previously stored maps, and store new ones.   * Disconnect your device, wait for the SD card to be checked (if needed), and restart the application. You should then be able to use your previously stored maps, and store new ones.
 +
 +\\
 +
 +===== How to access data stored outside of the application folder in Android 11 and above? =====
 +\\
 +Starting with Android 11, drastic changes have been made by Google regarding how applications can access data stored outside of the application specific folders: except for file managers (and a few other specific cases), applications are only able to access media files from the shared storage spaces (internal device and removable SD card). It means that all your file-based maps and placemarks saved outside of the application specific folders are no more accessible.
 +
 +{{:icon_help.png?nolink}} Those limitations don't apply if you update the application from version 2.2.9 (or below) to version 2.3.0 (or above).
 +
 +However, applications still keep a total access on their application specific folders (read and write everything). There is one application specific folder on the internal device memory, and one application specific folder on the removable SD card (if any).\\
 +For AlpineQuest Pro, the path of this folder is "''**/Android/data/psyberia.alpinequest.full/files/**''".\\
 +For AlpineQuest Lite, the path of this folder is "''**/Android/data/psyberia.alpinequest.free/files/**''".
 +
 +In addition, applications also have access to one "media" folder per storage device, if allowed by the user.
 +For AlpineQuest Pro, the path of this media folder is "''**/Android/media/psyberia.alpinequest.full/**''".\\
 +For AlpineQuest Lite, the path of this media folder is "''**/Android/media/psyberia.alpinequest.free/**''".
 +
 +Here are some workarounds:
 +
 +For **Placemarks**, either
 +  * Move your placemarks inside an application specific folder, inside the "''**/landmarks/**''" sub-folder. For AlpineQuest Pro, that would be "''**/Android/data/psyberia.alpinequest.full/files/landmarks/**''";
 +  * Or: Move your placemarks inside an application specific media folder. For AlpineQuest Pro, that would be "''**/Android/media/psyberia.alpinequest.full/**''";
 +  * Or: Open your placemarks from your file manager, the application will be listed in the possible choices for handling this file.
 +
 +For **Maps**, either
 +  * Move your maps inside an application specific folder, inside the "''**maps/**''" sub-folder. For AlpineQuest Pro, that would be "''**/Android/data/psyberia.alpinequest.full/files/maps/**''";
 +  * Or: Move your maps inside an application specific media folder. For AlpineQuest Pro, that would be "''**/Android/media/psyberia.alpinequest.full/**''";
 +  * Or: Add the file extension ''".mp3"'' to your maps, this way the Android system will consider the map file as a media file and will allow the application to access it. For example, rename your QCT map "''my_map.qct''" to "''my_map.qct.mp3''" (do not remove the original "''.qct''" file extension).
 +
 +\\
 +
 +==== How to move your files? ====
 +\\
 +In order to move your files from or into into an application specific folder, the recommended way is to use an Android 11 compatible file manager ("''Cx File Explorer''" or "''X-plore File Manager''" for example).
 +
 +Alternatively, you can plug your device on your desktop computer (using your USB cable) and use it to move the files (may not work for some setups);
 +