Share Example App
This app is part of ekke's blog series about mobile x-platform development: http://j.mp/qt-x
ekkes SHARE example
This is not a real-life app - this app only demonstrates
HowTo share Files from Qt Mobile App with other Apps on Android and iOS
HowTo open Qt Mobile App from other Apps on Android and iOS
!!! not production ready !!!
1. HowTo share Files from Qt Mobile App with other Apps on Android and iOS
On Android we're using Intents, on iOS UIDocumentInteractionController.
Developed and tested on Android 6, Android 7, Android 8, iOS and Qt 5.10.1 Android: This release now supports FileProvider and sets Permissions if incoming Files need iOS: This release supports Xcode 9.x and minimum iOS 10 (required by Qt 5.10.1)
Now more examplels included to share with other Apps: PNG, JPEG, DOCX, PDF
Here's an Overview about the workflows, per ex. Open a File from inside your App and edit in another App outside.
The goal of this app is to Open / View / Edit Files from your AppData Location in other Apps. But to be able to access your Files from AppData Location you first must copy them from AppData to shared UserData - per ex. DocumentsLocation. Of course at the end you need the modified File and you must delete the copy from Documentslocation, so we must watch for a SIGNAL from Android Intent or iOS UIDocumentInteractionController.
Share (Open / Edit) or Print from QtQuickControls2 Apps
Android Chooser to Open in...
Android Send Stream to Printer
iOS Preview Page
iOS Share with ...
2. HowTo open Qt Mobile App from other Apps on Android and iOS
Open Qt Apps from Android Apps
Open Qt Apps from iOS Apps
follow me @ekkescorner
To read more please take a look at these blogs:
Qt: part 4: coming soon
blogs at ekkes-corner: ... work in progress - stay tuned ...
articles in (german) web & mobile developer magazin: ... work in progress - stay tuned ...