<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">I’m having an hard time figuring out how to write files from a Qt Android app, to a location that is public to the user, outside of the scoped storage.</div><div class=""><br class=""></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">I’m currently using Qt 5.15.9 and targeting API 29 (Android 10). I have set in my manifest requestLegacyExternalStorage=true</div><div class=""><br class=""></div><div class="">And then I have tried to write a dummy file to the following StandardLocations:</div><div class=""><br class=""></div><div class=""><div style="background-color: rgb(255, 255, 255); line-height: 18px;" class=""><div style="color: rgb(54, 54, 54); font-family: Menlo, Monaco, "Courier New", monospace; white-space: pre;" class="">DesktopLocation - <span style="color: rgb(162, 86, 55);" class="">"/data/user/0/</span><a href="http://com.acme.org" class="">com.acme.org</a><span style="color: rgb(162, 86, 55);" class="">/files/test_file.txt"</span></div><div class=""><font color="#363636" face="Menlo, Monaco, Courier New, monospace" class=""><span style="white-space: pre;" class="">DocumentsLocation - </span></font><font color="#a25637" face="Menlo, Monaco, Courier New, monospace" class=""><span style="white-space: pre;" class="">"/storage/emulated/0/Android/data/</span><span style="caret-color: rgb(162, 86, 55); white-space: pre;" class=""><a href="http://com.acme.org" class="">com.acme.org</a></span><span style="white-space: pre;" class="">/files/Documents/test_file.txt"</span></font></div><div class=""><font color="#363636" face="Menlo, Monaco, Courier New, monospace" class=""><span style="white-space: pre;" class="">MusicLocation - </span></font><font color="#a25637" face="Menlo, Monaco, Courier New, monospace" class=""><span style="white-space: pre;" class="">"/storage/emulated/0/Android/data/</span><span style="caret-color: rgb(162, 86, 55); white-space: pre;" class=""><a href="http://com.acme.org" class="">com.acme.org</a></span><span style="white-space: pre;" class="">/files/Music/test_file.txt"</span></font></div><div class=""><font color="#363636" face="Menlo, Monaco, Courier New, monospace" class=""><span style="white-space: pre;" class="">PicturesLocation - </span></font><font color="#a25637" face="Menlo, Monaco, Courier New, monospace" class=""><span style="white-space: pre;" class="">"/storage/emulated/0/Android/data/</span><span style="caret-color: rgb(162, 86, 55); white-space: pre;" class=""><a href="http://com.acme.org" class="">com.acme.org</a></span><span style="white-space: pre;" class="">/files/Pictures/test_file.txt"</span></font></div><div class=""><font color="#363636" face="Menlo, Monaco, Courier New, monospace" class=""><span style="white-space: pre;" class="">HomeLocation - </span></font><font color="#a25637" face="Menlo, Monaco, Courier New, monospace" class=""><span style="white-space: pre;" class="">"/data/user/0/</span><span style="caret-color: rgb(162, 86, 55); white-space: pre;" class=""><a href="http://com.acme.org" class="">com.acme.org</a></span><span style="white-space: pre;" class="">/files/test_file.txt"</span></font></div><div class=""><font color="#363636" face="Menlo, Monaco, Courier New, monospace" class=""><span style="white-space: pre;" class="">GenericDataLocation - </span></font><font color="#a25637" face="Menlo, Monaco, Courier New, monospace" class=""><span style="white-space: pre;" class="">"/storage/emulated/0/Android/data/</span><span style="caret-color: rgb(162, 86, 55); white-space: pre;" class=""><a href="http://com.acme.org" class="">com.acme.org</a></span><span style="white-space: pre;" class="">/files/test_file.txt"</span></font></div><div class=""><font color="#363636" face="Menlo, Monaco, Courier New, monospace" class=""><span style="white-space: pre;" class="">DownloadLocation - </span></font><font color="#a25637" face="Menlo, Monaco, Courier New, monospace" class=""><span style="white-space: pre;" class="">"/storage/emulated/0/Android/data/</span><span style="caret-color: rgb(162, 86, 55); white-space: pre;" class=""><a href="http://com.acme.org" class="">com.acme.org</a></span><span style="white-space: pre;" class="">/files/Download/test_file.txt"</span></font></div><div class=""><font color="#363636" face="Menlo, Monaco, Courier New, monospace" class=""><span style="white-space: pre;" class="">GenericCacheLocation - </span></font><font color="#a25637" face="Menlo, Monaco, Courier New, monospace" class=""><span style="white-space: pre;" class="">"/data/user/0/</span><span style="caret-color: rgb(162, 86, 55); white-space: pre;" class=""><a href="http://com.acme.org" class="">com.acme.org</a></span><span style="white-space: pre;" class="">/cache/test_file.txt</span><span style="caret-color: rgb(162, 86, 55); white-space: pre;" class="">”</span></font></div></div><div class=""><br class=""></div><div class="">Then, with the files app I try to find any of the files without success… :(</div><div class=""><br class=""></div><div class="">How do we write to public files to public locations, outside the scoped storage? Is it currently possible? </div><div class=""><br class=""></div><div class="">Thanks in advance!</div><div class=""><br class=""></div><div class="">Nuno</div><div class=""><br class=""></div></div><div class=""><br class=""></div></body></html>