Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[SOLVED] Packaging Files for Android
drewpotter last edited by drewpotter
I have many photographs which are too big to put in QRC, so I need to be able to package up many photographs in the Android package and I then need to be able to load them such as:
photoPopUP.source = "file:///" + path + "/photos/" + image
Does anyone know how to do this on Android? I can't simply copy the folder of images into the apk file?
Jon Heron1 last edited by
Use assets directory, see here:
"The other approach is to deploy the resources into the package's assets directory. It is the best option if you want to achieve better interoperability with the Android APIs. You can access all resources in the directory using the "assets:" prefix. Unlike qrc, this approach is not a cross-platform solution."
drewpotter last edited by
@Jon-Heron1 Thanks that worked great!