Conversations icon indicating copy to clipboard operation
Conversations copied to clipboard

Handle complex share with both text and file

Open licaon-kter opened this issue 2 years ago • 3 comments

eg. F-Droid - open app details for an installed app -> Share

@eighthave: Right now, the share will include both the link and the APK, and leave it up to the app to decide which to use.

Which results in:

Android 11 share widget says "..apk" Sharing in Conversations yields a file only. Sharing in Fairemail yields a text link and a file attached.

Ref: https://gitlab.com/fdroid/fdroidclient/-/issues/2265

Related? https://github.com/iNPUTmice/Conversations/issues/2637

/LE: Also in Conversations the file ends up as .ZIP instead of .APK

licaon-kter avatar Sep 09 '21 13:09 licaon-kter

you can find extensive discussion and examples here:

  • https://gitlab.com/fdroid/fdroidclient/-/merge_requests/929
  • https://gitlab.com/fdroid/fdroidclient/-/issues/1918

eighthave avatar Sep 09 '21 13:09 eighthave

There is more technical detail on this issue here: https://github.com/vector-im/element-android/issues/3637

eighthave avatar Sep 10 '21 12:09 eighthave

Ok, files aside, at least use the text:

Eg. NewPipe, https://www.youtube.com/watch?v=SwZaZY2hYzA , Share

Fairemail: new email, video title is mail subject, link is mail content

Conversations: only link

Maybe https://github.com/tengusw/share_to_clipboard/blob/master/app/src/main/java/com/tengu/sharetoclipboard/ShareToClipboardActivity.java#L130 can be foraged for some parts?

licaon-kter avatar Oct 06 '21 16:10 licaon-kter