aboutsummaryrefslogtreecommitdiffstats
path: root/java/AndroidManifest.xml.in
diff options
context:
space:
mode:
authorPo Lu2023-09-22 09:36:40 +0800
committerPo Lu2023-09-22 09:36:40 +0800
commitd71b9673a07da93cd7651540cd015636b8f66fda (patch)
tree50b19e900b61f71eafb0d6071d67fc0fc05221bb /java/AndroidManifest.xml.in
parent9db3fbd369121ddd34e7f4febe8688d758a5dbb7 (diff)
downloademacs-d71b9673a07da93cd7651540cd015636b8f66fda.tar.gz
emacs-d71b9673a07da93cd7651540cd015636b8f66fda.zip
Enable opening mailto URLs under Android
* doc/emacs/android.texi (Android Startup): Mention how mailto URLs are treated by the emacsclient wrapper. * java/AndroidManifest.xml.in: Register `mailto' scheme filters for EmacsOpenActivity. * java/org/gnu/emacs/EmacsOpenActivity.java (startEmacsClient): Extract code that starts Emacs when it isn't already running, and take a list of arguments rather than a single file name. (onCreate): If the scheme is `mailto', escape the URI and call `message-mailto'.
Diffstat (limited to 'java/AndroidManifest.xml.in')
-rw-r--r--java/AndroidManifest.xml.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/java/AndroidManifest.xml.in b/java/AndroidManifest.xml.in
index 9044725640d..d4017a055dd 100644
--- a/java/AndroidManifest.xml.in
+++ b/java/AndroidManifest.xml.in
@@ -122,6 +122,21 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. -->
122 <category android:name="android.intent.category.BROWSABLE"/> 122 <category android:name="android.intent.category.BROWSABLE"/>
123 <data android:scheme="org-protocol"/> 123 <data android:scheme="org-protocol"/>
124 </intent-filter> 124 </intent-filter>
125
126 <!-- And also mailto links. -->
127
128 <intent-filter>
129 <action android:name="android.intent.action.VIEW"/>
130 <category android:name="android.intent.category.DEFAULT"/>
131 <category android:name="android.intent.category.BROWSABLE"/>
132 <data android:scheme="mailto"/>
133 </intent-filter>
134
135 <intent-filter>
136 <action android:name="android.intent.action.SENDTO"/>
137 <data android:scheme="mailto"/>
138 <category android:name="android.intent.category.DEFAULT"/>
139 </intent-filter>
125 </activity> 140 </activity>
126 141
127 <activity android:name="org.gnu.emacs.EmacsMultitaskActivity" 142 <activity android:name="org.gnu.emacs.EmacsMultitaskActivity"