< Development‎ | Tutorials‎ | Necessitas
Revision as of 11:51, 30 October 2011 by Bog dan ro (talk | contribs) (Access assets)

Android assets

Android assets are read-only arbitrary files bundled in their raw form into your package.Necessitas project provides seamless integration with android assets, meaning that you can access any asset files as you access any ordinary files.

Deploy assets

# assuming we want to deploy qml/foo/main.qml file
android { #define an android block
} else : symbian {
INSTALLS += delployment

Access assets

QFile file( "qml/foo/main.qml" );

// do whatever you want with file

Content is available under Creative Commons License SA 4.0 unless otherwise noted.