Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › qt load resource file on android

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16376

    Bas

    hi , i need to load a resource file on android.

    but i cannot find the right directory.

    where is the assets folder located when installed on an android device?

     

    gr,

    Bas

    #16377

    Bas

    i need to load a file from c++ but i cannot find the location of the assets folder.

    how can i locate this folder?

    #16438

    Christian
    Felgo Team

    Hi Bas,

    assets are usually located in:

    <project>/assets

    This folder is added to your project as a “deployment folder” in the project file. All files in this folder are available on all platforms.

    If, for example, you add an image called image.png, you can access it from QML and C++ with the path “assets/image.png”.

     

    If, on the other hand, you need the Android specific assets (for use with native libraries and java code), these are located in:

    <project>/android/assets

    The android folder is generated when you click the “Create templates” button under:

    Projects tab > select any Android build > Expand details of "Build Android APK" > "Create templates" button

    Hope this helps!

    Cheers,
    Chris

     

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded