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 File System Access
Forum Updated to NodeBB v4.3 + New Features

Android File System Access

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 6.5k Views 1 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.
  • M Offline
    M Offline
    Mammamia
    wrote on last edited by
    #1

    Hi, I am working on a Media player Application using QML and Qt on Android platform. I was able to develop a media player which can play video files. Now i want to implement PlayList for the player , which should display all the video files which are stored inside a particular directory.
    I found in QML i can use FolderListModel Element. I was able to use it on Desktop which will show the contents of the directory which is provided to FolderListModel using "folder" property. And i was trying te same thing on Android platform and does not show anything.
    @
    ListView {
    width: 400; height: 400
    FolderListModel {
    id: folderModel
    folder: "/mnt/sdcard"
    }
    Component {
    id: fileDelegate
    Text { text: fileName }
    }
    model: folderModel
    delegate: fileDelegate
    }
    @

    And in AndroidManifest.xml i have added permission for READ_EXTERNAL_STORAGE & WRITE_EXTERNAL_STORAGE.. That too doesn't help. Is there any other option to access files stored inside a particular directory on Android.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      and.fo
      wrote on last edited by
      #2

      I used in a similar scenario:

      source: "file:///sdcard/DCIM/test.mp4" /

      "sdcard" is the entry point for the file system.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mammamia
        wrote on last edited by
        #3

        Thanks... I missed that "file://" part... now its working..

        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