How to add Android extension files using Qt

I am currently developing an Android application using Qt / QML, and my application will be much larger than the 50 MB limit of the Google Play Store due to the media files that need to be bundled, so I have to use extension files. After some searches, I found a page on the page that says the Qt resource system can help make the .obb extension files:

"For large resources that do not fit into the storage size on Google Play of 50 MB, qrc can generate rcc files that can be placed in obb"

but I cannot find any information on how to do this or how to access these files from my code.

EDIT: I created a .rcc file using Qt. Trying to convert it to .bb now. Has anyone done this with the jobb tool?

I also thought that I could just download the .rcc file directly, since Google Play accepts any file format for extension files, but then I could not encrypt it .. but how could I access the .rcc file? Should I write Java code or can I make it work with Qt C ++ / QML?

EDIT: I get it. I created an external binary resource file using the rcc tool available on the Qt command line. Using the QResource class, I can load an external binary resource file and access it because it was a regular qrc resource file.

+4
source share
1 answer

All Articles