Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android: Qt Core needs permission WRITE_EXTERNAL_STORAGE?
Forum Update on Tuesday, May 27th 2025

Android: Qt Core needs permission WRITE_EXTERNAL_STORAGE?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 409 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    andrewagr
    wrote on last edited by
    #1

    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:

    "Note: Don't check for or request permissions when the user opens your app. Instead, wait until the user selects or opens the feature that requires a particular permission."

    So what we should do?

    raven-worxR 1 Reply Last reply
    0
    • A andrewagr

      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:

      "Note: Don't check for or request permissions when the user opens your app. Instead, wait until the user selects or opens the feature that requires a particular permission."

      So what we should do?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @andrewagr said in Android: Qt Core needs 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

      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.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved