Data Sharing with apps from Qt app on android
-
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 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 -
@ekkescorner thank you very much. I will give it a try.
-
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. -
@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>
-
@ekkescorner thank you
-
-