Android: Share to Voelin
Other apps could not hand anything to Voelin. The activity now takes ACTION_SEND and ACTION_SEND_MULTIPLE of any type. Text and links go into the composer of the current chat, which the phone then shows: one tap sends them, and a mis-tap in the share sheet does not post into a busy channel. Files are copied out of the sending app while its content URIs are readable (on a thread of their own, under the name the app gives, made safe as a path component) and uploaded to the current chat's channel, or the channel we are in, and linked there as the composer's attach button does. The copies live in the cache and are removed at the next start. Two development switches show both platform requests without a phone: VOELIN_OPEN=notification (a tapped voice notification) and VOELIN_OPEN=shared:<text>. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d4b6baaa42
commit
ef976cf31e
9 files changed
+192
-7
No files matched your search
@@ -56,6 +56,17 @@
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
<!--
|
||||
"Share to Voelin": text and links go into the composer of
|
||||
the current chat, files (pictures, videos, documents) are
|
||||
uploaded to the current channel.
|
||||
-->
|
||||
<intent-filter android:label="@string/share_label">
|
||||
<action android:name="android.intent.action.SEND" />
|
||||
<action android:name="android.intent.action.SEND_MULTIPLE" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<data android:mimeType="*/*" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<!-- Keeps the microphone and the connection while in the background. -->
|
||||
|
||||
Reference in new issue
Block a user