Adding extra files to an Android Application



  • I am using qt 5.2 and I have been trying to figure out how to have extra files along with my application when it installs. I want to be able to use adb shell and then cd into data/data/org.qtproject.example.myProjectPath/ I would like to be able to find that file somewhere. I had posted a question about this already but was unable to find answers some people did reply and there was mentioning of assets but qt 5.2 doesnt create an assets file. I was also told to try something along the lines of
    @deployment.files += program
    deployment.path = /assets
    INSTALLS += deployment@

    and also

    @documentation.path = /usr/local/program/doc
    documentation.files = docs/*
    INSTALLS += documentation@

    Neither of these I could get to work. I was also given this link http://qt-project.org/doc/qt-5/qmake-advanced-usage.html#installing-files but it does not seem to be android specific.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.