From b19f496ce0e9b357930e9abaef7299b78b233b28 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 8 Oct 2018 06:18:44 +0000 Subject: [PATCH] Use timers --- FAQ.md | 11 ++-- app/src/main/AndroidManifest.xml | 1 + .../eu/faircode/email/ServiceSynchronize.java | 64 ++++++++++++++++--- 3 files changed, 63 insertions(+), 13 deletions(-) diff --git a/FAQ.md b/FAQ.md index f6c1a2d8..24afe499 100644 --- a/FAQ.md +++ b/FAQ.md @@ -8,11 +8,12 @@ At the bottom you can find how to ask other questions, request features and repo **(1) Which permissions are needed and why?** -* Full network access (INTERNET): to send and receive email -* View network connections (ACCESS_NETWORK_STATE): to monitor internet connectivity changes -* Run at startup (RECEIVE_BOOT_COMPLETED): to start monitoring on device start -* In-app billing (BILLING): to allow in-app purchases -* Foreground service (FOREGROUND_SERVICE): to run a foreground service on Android 9 Pie and later, see also the next question +* have full network access (INTERNET): to send and receive email +* view network connections (ACCESS_NETWORK_STATE): to monitor internet connectivity changes +* run at startup (RECEIVE_BOOT_COMPLETED): to start monitoring on device start +* in-app billing (BILLING): to allow in-app purchases +* foreground service (FOREGROUND_SERVICE): to run a foreground service on Android 9 Pie and later, see also the next question +* prevent device from sleeping (WAKE_LOCK): to keep the device awake while synchronizing messages * Optional: read your contacts (READ_CONTACTS): to autocomplete addresses and to show photos * Optional: find accounts on the device (GET_ACCOUNTS): to use [OAuth](https://en.wikipedia.org/wiki/OAuth) instead of passwords diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 0da96a38..fb34be07 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -8,6 +8,7 @@ +