Data Sharing with apps from Qt app on android
-
wrote on 5 Jul 2021, 04:57 last edited by ahsan737 7 Jun 2021, 04:53
Greetings,
This blog was created for android 6.0, explaining the data sharing with other apps on android, and by then, android has been upgraded to v11.0. I've implemented this code in the Qt android app, and it works quite well till android 8, but on android versions 10 and 11, it doesn't read all the apps installed on the system to share data with. Would you please guide which changes are required to make it work with v11?
Best Regards,
Ahsan -
Greetings,
This blog was created for android 6.0, explaining the data sharing with other apps on android, and by then, android has been upgraded to v11.0. I've implemented this code in the Qt android app, and it works quite well till android 8, but on android versions 10 and 11, it doesn't read all the apps installed on the system to share data with. Would you please guide which changes are required to make it work with v11?
Best Regards,
Ahsan@ahsan737 said in Data Sharing with apps from Qt app on android:
This blog was created for android 6.0
Which blog do you mean?
-
@ahsan737 said in Data Sharing with apps from Qt app on android:
This blog was created for android 6.0
Which blog do you mean?
wrote on 5 Jul 2021, 05:18 last edited by ahsan737 7 May 2021, 05:19@jsulm I've added the blog link in the original post.
for reference: https://www.qt.io/blog/2017/12/01/sharing-files-android-ios-qt-app#comments
-
@jsulm I've added the blog link in the original post.
for reference: https://www.qt.io/blog/2017/12/01/sharing-files-android-ios-qt-app#comments
@ahsan737 just last week I've updated https://github.com/ekke/ekkesSHAREexample to Qt 5.15
you should give it a test - I have no problems on Android 9 and 10 -
@ahsan737 just last week I've updated https://github.com/ekke/ekkesSHAREexample to Qt 5.15
you should give it a test - I have no problems on Android 9 and 10wrote on 6 Jul 2021, 04:49 last edited by@ekkescorner thank you very much. I will give it a try.
-
wrote on 6 Jul 2021, 05:35 last edited by
-
I have tried with updated code.
I can share the data with some apps, but it cannot read all compatible apps for data sharing such as Wechat, Whatsapp, etc.
Testing OS: Android 11 (Oneplus 8T)
Target SDK: API 28 Android 9Please check the attached files for reference.
@ahsan737 my app is only an example how you can implement sharing.
you have to figure out how the missed apps share their data, which intent-filter you need per ex. - sorry, have not the time to figure this out yet. -
@ahsan737 my app is only an example how you can implement sharing.
you have to figure out how the missed apps share their data, which intent-filter you need per ex. - sorry, have not the time to figure this out yet.wrote on 6 Jul 2021, 07:16 last edited by ahsan737 7 Jun 2021, 07:17@ekkescorner okay sir, thanks for the kind response.
PS: Actually, I do not have much experience with android app development, so I cannot dive deep into the issue.
-
@ekkescorner okay sir, thanks for the kind response.
PS: Actually, I do not have much experience with android app development, so I cannot dive deep into the issue.
@ahsan737 for one customer per ex. I had to add
<intent-filter> <action android:name="android.intent.action.SEND_MULTIPLE"></action> <category android:name="android.intent.category.DEFAULT"></category> <data android:mimeType="*/*"></data> </intent-filter>
-
@ahsan737 for one customer per ex. I had to add
<intent-filter> <action android:name="android.intent.action.SEND_MULTIPLE"></action> <category android:name="android.intent.category.DEFAULT"></category> <data android:mimeType="*/*"></data> </intent-filter>
wrote on 6 Jul 2021, 09:44 last edited by@ekkescorner thank you
-
@ekkescorner thank you
wrote on 18 May 2023, 09:24 last edited by -