Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Adding rcc file to Android Tablet
Forum Updated to NodeBB v4.3 + New Features

Adding rcc file to Android Tablet

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 651 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.
  • A Offline
    A Offline
    abanksdev
    wrote on last edited by
    #1

    Hi there, I am trying to run a large video file as an rcc file embedded in an application that runs on an Android tablet. The problem is, I'm unsure as to how/where to put the rcc file given that the application runs on the tablet.

    I've tried putting the rcc file on the actual tablet and registering the path to the rcc file in qt like so:

    QResource::registerResource("/sdcard/DownloadAndUploadCache/videos.rcc/GRAPHY_TAKE2");
    

    And in the qml, given it the path to the qrc file:

    MediaPlayer {
                id: qdv
                source: "../video/video/GRAPHY_TAKE2.mov"
                autoPlay: true
            }
    
    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      I'm assume that you are building the separate rcc file & trying to bundle external file. Did you create the templates for Android projects ? Did you try with assets folder for android ?

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      1
      • A Offline
        A Offline
        abanksdev
        wrote on last edited by
        #3

        I have not, what do you mean by create templates for Android projects?

        1 Reply Last reply
        0
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on last edited by
          #4

          Projects->Build->BuildAndroidAPK
          Above steps creates the manifest file. Once you do this, it will create addition folders for you to have manifest file, assets, sources etc. Can you check that ?

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          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