ekkesSHAREexample
ekkesSHAREexample copied to clipboard
[Android] Second call "onCreate"
Hey @ekke! I wonder if you've found any solution for this issue:
// WIP - trying to find a solution to survive a 2nd onCreate
// ongoing discussion in QtMob (Slack)
// from other Apps not respecting that you only have a singleInstance
// there are problems per ex. sharing a file from Google Files App,
// but working well using Xiaomi FileManager App
@Override
public void onDestroy() {
I just faced it with several applications which tries to create another instance of my application and I have no idea how to fix it.
BTW, thanks a lot for your blog, it was very helpful :)
haven't found a solution yet. just have ported all my customer and example apps from 5.15.7 to 5.15.14. this week I'll start with Qt 6 (6.6. Beta1) and have planned a rewrite of the sharing example. perhaps then will find a way ?
BTW: if the files are accessible from Google Files App, you can go the other way: from inside your App use the native FileDialog to open Files from other Apps. Have implemented an example inside the share example. Unfortunately there are problems with Qt 5.15.13/ 5.15.14 if filename contains Spaces (workaround exists) or umlauts (no workaround, hopefully fixed in 5.15.15)
yeah sure, I support such use case in my app already. But it would be great if users could send files from other apps too