diff options
| author | Po Lu | 2023-09-22 09:36:40 +0800 |
|---|---|---|
| committer | Po Lu | 2023-09-22 09:36:40 +0800 |
| commit | d71b9673a07da93cd7651540cd015636b8f66fda (patch) | |
| tree | 50b19e900b61f71eafb0d6071d67fc0fc05221bb /doc | |
| parent | 9db3fbd369121ddd34e7f4febe8688d758a5dbb7 (diff) | |
| download | emacs-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 'doc')
| -rw-r--r-- | doc/emacs/android.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/emacs/android.texi b/doc/emacs/android.texi index b8862b244d2..07b689ca23b 100644 --- a/doc/emacs/android.texi +++ b/doc/emacs/android.texi | |||
| @@ -158,6 +158,13 @@ opened. | |||
| 158 | @command{emacsclient} wrapper as a program capable of opening | 158 | @command{emacsclient} wrapper as a program capable of opening |
| 159 | ``org-protocol'' links (@pxref{Protocols,,,org, The Org Manual}). | 159 | ``org-protocol'' links (@pxref{Protocols,,,org, The Org Manual}). |
| 160 | 160 | ||
| 161 | @cindex ``mailto'' links, android | ||
| 162 | Furthermore, the wrapper is also registered as a program capable of | ||
| 163 | sending mail to @code{mailto} URIs; when it is invoked to open such a | ||
| 164 | URL, it calls the function @code{message-mailto} with that URI as its | ||
| 165 | first argument. This feature does not function when the Emacs server | ||
| 166 | is not already running. | ||
| 167 | |||
| 161 | @node Android File System | 168 | @node Android File System |
| 162 | @section What Files Emacs Can Access on Android | 169 | @section What Files Emacs Can Access on Android |
| 163 | @cindex /assets directory, android | 170 | @cindex /assets directory, android |