diff options
| author | Po Lu | 2023-08-20 20:23:56 +0800 |
|---|---|---|
| committer | Po Lu | 2023-08-20 20:25:53 +0800 |
| commit | 4f714dc08137d36d0d1e886814008f2abe5712c0 (patch) | |
| tree | e400e9263e9c1b779b07e56ea88533e6bd4adfb0 /java/AndroidManifest.xml.in | |
| parent | 321f6bd5722921175ac3dc8859daca74dbe3de6a (diff) | |
| download | emacs-4f714dc08137d36d0d1e886814008f2abe5712c0.tar.gz emacs-4f714dc08137d36d0d1e886814008f2abe5712c0.zip | |
Support desktop notifications on Android
* doc/emacs/android.texi (Android Environment): Correct list of
permissions granted by default.
* doc/lispref/os.texi (Desktop Notifications): Document the new
function `android-notifications-notify' and its limitations.
* java/AndroidManifest.xml.in: Request notification permissions.
* java/org/gnu/emacs/EmacsDesktopNotification.java: New file.
* java/res/layout/sdk8_notifications_view.xml: New file holding
substitute notification widget definitions for Android versions
prior to 3.0.
* java/res/values/strings.xml: Remove inadvertently introduced
tag attribute.
* lisp/org/org-clock.el (haiku-notifications-notify): Correct
file name in function declaration.
(android-notifications-notify): New declaration.
(org-show-notification): Use `android-notifications-notify'.
* src/androidselect.c (android_init_emacs_desktop_notification)
(android_notifications_notify_1, Fandroid_notifications_notify):
New functions.
(init_androidselect, syms_of_androidselect): Initialize new
class and define new subr.
Diffstat (limited to 'java/AndroidManifest.xml.in')
| -rw-r--r-- | java/AndroidManifest.xml.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/java/AndroidManifest.xml.in b/java/AndroidManifest.xml.in index 895e7f88c57..b9cda401c9d 100644 --- a/java/AndroidManifest.xml.in +++ b/java/AndroidManifest.xml.in | |||
| @@ -66,6 +66,11 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. --> | |||
| 66 | 66 | ||
| 67 | <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/> | 67 | <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/> |
| 68 | 68 | ||
| 69 | <!-- And under Android 13 or later to post desktop | ||
| 70 | notifications. --> | ||
| 71 | |||
| 72 | <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/> | ||
| 73 | |||
| 69 | <uses-sdk android:minSdkVersion="@ANDROID_MIN_SDK@" | 74 | <uses-sdk android:minSdkVersion="@ANDROID_MIN_SDK@" |
| 70 | android:targetSdkVersion="33"/> | 75 | android:targetSdkVersion="33"/> |
| 71 | 76 | ||