Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
translate ▾

Modern-Apps.git / communicate / src / main / res / xml / shortcuts.xml

shortcuts.xml15 lines · 881 BRaw
1<?xml version="1.0" encoding="utf-8"?>
2<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
3 <!-- Direct Share (system share sheet's direct-share row). The category must
4 match ConversationSpace.SHARE_TARGET_CATEGORY: dynamic conversation
5 shortcuts carrying that category become chooser targets, and tapping
6 one launches MainActivity with the ACTION_SEND / SEND_MULTIPLE intent
7 (plus EXTRA_SHORTCUT_ID) declared in its intent-filters. -->
8 <share-target android:targetClass="com.vayunmathur.communicate.MainActivity">
9 <data android:mimeType="text/plain" />
10 <data android:mimeType="image/*" />
11 <data android:mimeType="video/*" />
12 <data android:mimeType="application/*" />
13 <category android:name="com.vayunmathur.communicate.category.DIRECT_SHARE" />
14 </share-target>
15</shortcuts>