Importing an image from another app

  • Hi everyone,

    I'm new to Ubuntu Phone app development, and since there are few apps for the moment, I thought I might as well try to help.

    I'd like to make an app that would allow the user to import an image that my app could work on.

    I know that this is done by using the Ubuntu Content API, but I get some weird things when I try the snippet here.

    I get these warnings / errors:

    could not open containers config file  "/home/phablet/.local/share/libertine/ContainersConfig.json"
    file:///opt/ Unable to assign [undefined] to QObject*
    library "/vendor/lib/egl/" not found
    void ContentTransfer::setTransfer(com::ubuntu::content::Transfer*) No valid transfer object passed: QObject(0x0)

    And then the app crashes.

    Do you know what I'm doing wrong ?

    Thank you!