Difference between revisions of "Development/Tutorials/Necessitas/Assets"

(Replaced content with "Moved to http://community.kde.org/Necessitas/Assets")
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Android assets==
Moved to http://community.kde.org/Necessitas/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 ===
<syntaxhighlight lang="make">
# assuming you want to deploy qml/foo/main.qml file, you need to add the flowing lines to your .pro/.pri file(s)
android { #define an android block
    delployment.path=/assets #all assets must go to "/assets" folder of your android package
} else : maemo5 { #other platforms
INSTALLS += delployment
=== Access assets ===
<syntaxhighlight lang="cpp-qt">
QFile file( "qml/foo/main.qml" );
// do whatever you want with file

Latest revision as of 13:29, 7 September 2012

This page was last edited on 7 September 2012, at 13:29. Content is available under Creative Commons License SA 4.0 unless otherwise noted.