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. how do i create a common folder under internal storage's Downloads folder from android version 5 to 11.
Forum Updated to NodeBB v4.3 + New Features

how do i create a common folder under internal storage's Downloads folder from android version 5 to 11.

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 128 Views
  • 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.
  • NIvil WilsonN Offline
    NIvil WilsonN Offline
    NIvil Wilson
    wrote on last edited by
    #1

    sir,
    how do i create a common folder under internal storage's "Documents" folder from android version 5 to 11.
    i used the following code to create folder but it doesn't work on android version 5 without an sdcard.

    
      QStringList pathlist=QStandardPaths::standardLocations(QStandardPaths::DocumentsLocation);
    
       QString path=pathlist.first();
       qDebug()<<path;
           QDir dir(path);
       QDir dir1(path+"/ksl");
    
           if(!dir1.exists()){
               qDebug()<<dir.path();
               bool status=dir.mkpath(path+"/ksl");
               qDebug()<<status;
               qDebug()<<dir.path();
               qDebug()<<dir.currentPath();
    
           }
    
    1 Reply Last reply
    0

    • Login

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