Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!


OverviewFelgo 2 Support (Qt 5) › nativeUtils.share() shares text with file url instead of it`s contents

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #23870



    Got some troubles with share()

    Currently I`m trying to share .jpg and .txt located in CacheLocation

    file_paths.xml is default from felgo3

    nativeUtils.openFile() opens .txt file with url “content://package_name.fileprovider/cache/filename.txt” (in Android default browser)

    But  nativeUtils.share(_text_,_filepath_) shares a message “_text_ _filePath” where _filepath_ is like “file:///data/user/0/”

    <pre>nativeUtils.share(“Log file”, fileUtils.getUrlByAddingSchemeToFilename(fileUtils.storageLocation(FileUtils.CacheLocation,”log.txt”)))</pre>
    I`ve tried telegram, whatsapp, different viewers, senders etc. and always the same.

    Am I doing something wrong?


    Felgo Team

    Hi Dmitry,

    Thank you for reaching out. This feature has been implemented very recently, and you’ll be able to properly share file binaries with the next Felgo update.



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

RSS feed for this thread

You must be logged in to reply to this topic.