
alex_lipJune 8, 2018, 6:43 p.m.
Пути для file Provider
В документации указаны варианты
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<files-path name="my_images" path="images/"/>
...
</paths>
The
<paths>
element must contain one or more of the following child elements:
<files-path name="name" path="path" />
-
Represents files in the
files/
subdirectory of your app's internal storage area. This subdirectory is the same as the value returned byContext.getFilesDir()
. <cache-path name="name" path="path" />
-
Represents files in the cache subdirectory of your app's internal storage area. The root path
of this subdirectory is the same as the value returned by
getCacheDir()
. <external-path name="name" path="path" />
-
Represents files in the root of the external storage area. The root path of this subdirectory
is the same as the value returned by
Environment.getExternalStorageDirectory()
. <external-files-path name="name" path="path" />
-
Represents files in the root of your app's external storage area. The root path of this
subdirectory is the same as the value returned by
Context#getExternalFilesDir(String) Context.getExternalFilesDir(null)
. <external-cache-path name="name" path="path" />
-
Represents files in the root of your app's external cache area. The root path of this
subdirectory is the same as the value returned by
Context.getExternalCacheDir()
. <external-media-path name="name" path="path" />
-
Represents files in the root of your app's external media area. The root path of this
subdirectory is the same as the value returned by the first result of
Context.getExternalMediaDirs()
.Note: this directory is only available on API 21+ devices.
QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) - Это какой из них ?
Или нужен другой стандартный Qt путь?

We recommend hosting TIMEWEB
Stable hosting, on which the social network EVILEG is located. For projects on Django we recommend VDS hosting.Do you like it? Share on social networks!
Ua
- Unknown akadamn
- Jan. 24, 2025, 5:14 p.m.
Qt - Test 001. Signals and slots
- Result:84points,
- Rating points4
Ua
- Unknown akadamn
- Jan. 24, 2025, 4:22 p.m.
Qt - Test 001. Signals and slots
- Result:42points,
- Rating points-8
Last comments
ИМ
Django - Tutorial 017. Customize the login page to Django Добрый вечер Евгений! Я сделал себе авторизацию аналогичную вашей, все работает, кроме возврата к предидущей странице. Редеректит всегда на главную, хотя в логах сервера вижу запросы на правильн…
Игорь МаксимовNov. 22, 2024, 9:51 p.m.

Evgenii LegotckoiOct. 31, 2024, 11:37 p.m.
Fb3 file reader on Qt Creator Подскажите как это запустить? Я не шарю в программировании и кодинге. Скачал и установаил Qt, но куча ошибок выдается и не запустить. А очень надо fb3 переконвертировать в html
ИМ
Django - Lesson 064. How to write a Python Markdown extension Приветствую Евгений! У меня вопрос. Можно ли вставлять свои классы в разметку редактора markdown? Допустим имея стандартную разметку: <ul> <li></li> <li></l…
Игорь МаксимовOct. 5, 2024, 4:51 p.m.
QML - Lesson 016. SQLite database and the working with it in QML Qt Здравствуйте, возникает такая проблема (я новичок): ApplicationWindow неизвестный элемент. (М300) для TextField и Button аналогично. Могу предположить, что из-за более новой верси…
Now discuss on the forum
f
Рисование на QGraphicsScene при зажатой кнопке мыши Подскажите, пожалуйста! Как данный класс можно дополнить, чтобы созданные объекты можно было перемещать мышкой по сцене?
firstlunoxodFeb. 15, 2025, 1:46 p.m.

ДмитрийFeb. 3, 2025, 4:24 p.m.
не запускается компьютер!!! Не запускается компьютер (точнее работает блок , но сам монитор вообще жесть)В общем я ничего с интернета не скачивала в последнее время. На компе никаких левых пр…
Нужно запретить перемещение только некоторых итемов, остальные перемещать можно. Вопрос решен. Узнать QModelIndex элемента на который мы перетаскиваем другой элемент, можно с помощью функции indexAt(event->position().toPoint()) представления QTreeViev вызываемой в переопр…
OAuth2.0 через VK, получение email Спасибо большое за помощь и простите за то что отнял время своей невнимательностью.
Я так думаю, что лучше использовать из QStandardPaths::DataLocation или QStandardPaths::HomeLocation,
QStandardPaths::DataLocation
дает
QUrl("file:///data/user/0/org.adm.esd/files") + добавить свою папку
Context.getFilesDir() - /data/user/0/org.adm.esd/files + добавить свою папку
Таким образом в fileprovider указываем