Giter Site home page Giter Site logo

swunzh / ekkesshareexample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ekke/ekkesshareexample

0.0 0.0 0.0 1.55 MB

ekkes Share Example APP: Share files on Android and iOS

License: Other

Java 26.55% C++ 41.29% QMake 3.08% Objective-C++ 4.51% QML 24.57%

ekkesshareexample's Introduction

Share Example App

AUTHOR ( ekke )

This app is part of ekke's blog series about mobile x-platform development: http://j.mp/qt-x

License Information

see LICENSE ( The Unlicense )

ekkes SHARE example

This is not a real-life app - this app only demonstrates

  1. HowTo share Files from Qt Mobile App with other Apps on Android and iOS

  2. 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 - 10, iOS and Qt 5.15.5 Android: This release now supports FileProvider and sets Permissions if incoming Files need iOS: This release supports Xcode 12 and minimum iOS 12 (required by Qt 5.15)

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.

Overview

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.

Files from AppData to Documents and back

Share (Open / Edit) or Print from QtQuickControls2 Apps

Android Chooser to Open in...

Android Chooser to Open in ...

Android Send Stream to Printer

Android Send Stream to Printer

iOS Preview Page

iOS Preview

iOS Share with ...

iOS Share

2. HowTo open Qt Mobile App from other Apps on Android and iOS

Open Qt Apps from Android Apps

New Intent coming in from other Android App

Process Intent from other Android App

Open Qt Apps from iOS Apps

Handle Url from other iOS App

More Infos

follow me @ekkescorner

To read more please take a look at these blogs:

ekkes Sharing Blogs at Qt Blog

Qt: Part 1: http://blog.qt.io/blog/2017/12/01/sharing-files-android-ios-qt-app/

Qt: Part 2: http://blog.qt.io/blog/2018/01/16/sharing-files-android-ios-qt-app-part-2/

Qt: part 3: http://blog.qt.io/blog/2018/02/06/sharing-files-android-ios-qt-app-part-3/

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 ...

ekkesshareexample's People

Contributors

ekke avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.