Android: Qt Core needs permission WRITE_EXTERNAL_STORAGE?
andrewagr last edited by
I discovered that the permission WRITE_EXTERNAL_STORAGE is loaded by default on Android manifest. But for Android this is a Dangerous permission. And to use a dangerous permission the app must prompt the user to grant permission at runtime.
In the documentation says that
"This can be android.permission.WRITE_EXTERNAL_STORAGE for Qt Core".
So I want to know if this is true?
Qt Core really needs the permission WRITE_EXTERNAL_STORAGE ?
Because if this is true than Qt core is started at launch and I should ask the permission at runtime in the app launch and this is not recommended from Android documentation as says here:
So what we should do?
Because if this is true than Qt core is started at launch and I should ask the permission at runtime in the app launch
certain features in QtCore need the permission. I guess QSettings for example.
Just test your app without the permission and check if all works for your needs. If not check ifpermissions are needed and request them.