[Interest] Reading the shared Photos directory on Android

Israel Brewster ijbrewster at alaska.edu
Wed Jul 10 14:34:35 CEST 2024


Nope, hadn’t come across that one, and Yep - it was exactly what I needed Thank you, thank you, thank you! Added that to my manifest as well as the permission check function I had, and viola! Photos! After removing and re-installing the app, I even got the permission pop-up I had been expecting asking me if I wanted to allow access.

So just to confirm, based on that bug report you filed (and for which I voted), this is an android version issue? That is, the code I had would have worked (at least theoretically) in android less than 13?

Thanks again!
---
Israel Brewster
Software Engineer
Alaska Volcano Observatory 
Geophysical Institute - UAF 
2156 Koyukuk Drive 
Fairbanks AK 99775-7320
Work: 907-474-5172
cell:  907-328-9145

> On Jul 10, 2024, at 1:44 AM, ekke <ekke at ekkes-corner.org> wrote:
> 
> Hi Israel,
> have you tested to add READ_MEDIA_IMAGES permission ?
> see my article about Qt Permissions https://t1p.de/ekkePermissions
> and https://bugreports.qt.io/browse/QTBUG-116834 (please vote)
> ciao
> ekke
> 
> 
> Am 10.07.24 um 05:14 schrieb Israel Brewster via Interest:
>> I have written a Qt app, using Qt 6.6.3 that does something very simple: display photos (essentially a digital photo frame). I am trying to get it to run on Android 14. Unfortunately, as simple as this should be, I can not for the life of me figure out how to get it to request permission to access the Photos directory - and without that permission, my call to fileDir.entryList comes up empty - even though, if I call File::exists() with a file I know is in that directory, it returns true.
> ....
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20240710/d6cb7656/attachment.htm>


More information about the Interest mailing list