[Android-development] How to access bundled assets?

Harri Pasanen harri at mpaja.com
Mon Sep 29 12:30:54 CEST 2014


I need to add some files to the deployed package.

https://community.kde.org/Necessitas/Assets

Explains it nicely.   (Note that I was unable to find this info in the 
official Qt docs.
I looked at 
http://qt-project.org/doc/qtcreator-3.2/creator-deploying-android.html
and http://qt-project.org/doc/qt-5/deployment-android.html)

However, I have a need to open the deployed file with fopen();

I thought that QUrl("assets:/data/myfile.dat").path()

would give the path required for fopen(), but apparently not, hence this 
mail.

Any advice?

Thanks,

Harri








More information about the Android-development mailing list