Skip to content

Commit 05e7b57

Browse files
authored
Merge pull request opengisch#28 from opengisch/sd-card
Sd card and favorite directories explanation
2 parents 1563820 + 9665c0d commit 05e7b57

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

en/project-management/project-selection.rst

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,29 @@ Inside these directories, only subdirectories and files with the ".qgs" extensio
1212

1313
QField requires the project file to be physically on the device, so it is not possible to use providers that work with remote files (e.g. Google Drive). On the other hand you can use apps like `syncthing <https://syncthing.net/>`_ or `nextcloud <https://nextcloud.com/>`_ (or dropbox and probably many others) that allow you tho physically sync the file to your device.
1414

15+
Favorite directories
16+
--------------------
17+
In the first screen of the file selector, there is a section showing the favorite directories. To add a directory to the favorites, long click in the file selector on the directory name. To remove an entry from the favorites, long click on the entry in the favorites list.
18+
1519
External SD card
1620
----------------
17-
The file selector only shows the application-specific directory on an external SD card, as it is the only directory for which the app has write access. The directory is the following:
21+
The file selector shows the root of the SD card labeled as "read-only" and the application-specific directory separated from the rest of the SD card, as it is the only directory for which the app has write access. The directory is the following:
1822

19-
.. code-block:: none
23+
.. code-block::
2024
2125
/Android/data/ch.opengis.qfield/files
2226
27+
.. note::
28+
29+
Technically, this is due to the fact that Android intents ACTION_OPEN_DOCUMENT and ACTION_OPEN_DOCUMENT_TREE, work and grant read-write access on the content of the returning URI, not on the real linked file. This limitation which makes sense for how Android is structured but currently it is unusable with QField as QField needs to access the real file with a real path.
30+
2331
Warning!
2432
--------
2533
By storing data in this folder, you risk losing data.
2634
The application-specific directory (`/Android/data/ch.opengis.qfield/`) will be deleted by the system if you uninstall QField from your Android device. This is important if you keep the data in the External sd card.
2735

2836
How to turn external SD card into internal storage
29-
--------
37+
--------------------------------------------------
3038
Starting from Android 6.0, you can use the SD card as internal storage for your Android phone. A feature called Adoptable Storage allows the Android OS to format an external storage media as a permanent internal storage. The data on the adopted SD card is encrypted and it can’t be mounted on another device.
3139

3240
**Please be sure you start with an empty SD card. It needs to be empty because when the card is converted to "Internal" storage, it will be formatted (wiped).**
@@ -36,6 +44,7 @@ Starting from Android 6.0, you can use the SD card as internal storage for your
3644
3. Now select “Format as internal”, and then “Erase & Format”.
3745
4. Your SD Card will now be formatted as internal storage.
3846
5. Reboot your phone.
47+
3948
If you don't reboot the phone, many things may not work correctly, so make sure you do.
4049

4150
It might be possible that the Adoptable Storage feature is not present on your device even if it is running Android 6.0 and above. The device manufacturer may have disabled the feature. However, command-line methods exist which allow you to force a device to adopt a storage.

0 commit comments

Comments
 (0)