Open files with application by extension (*.extension) on Android/iOS. How?



  • Hello all!

    I need to solve issue of opening by user files that saved in one application instance on Android on another application instance on iOS. It's kind of data exchange between devices but not via activity handler but through files via email for example.

    The use-case looks like: one user1 on devise storing data in predefined format into file with *.extention and sending it to another user via e-mail and user2 clicking on attached file and this file automatically opening with application.

    How to solve it?


  • Lifetime Qt Champion

    Hi,

    Are you looking for something similar to registering your file extension to associate it with your application ?

    One thing you can try is to use QDesktopServices::openUrl.

    Writing this message, I realise that you expect the system to open your file when clicking on the file in the email message, correct ?



  • @sgaist
    -- Are you looking for something similar to registering your file extension to associate it with your application ? - yes
    -- Writing this message, I realise that you expect the system to open your file when clicking on the file in the email message, correct ? - yes

    I found this and seeking universal solution in Qt for the case if application is in background already and user clicking by file at this moment.


  • Lifetime Qt Champion

    That article looks interesting ! Thanks for sharing it.


Log in to reply
 

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