Gadgetbridge/app/src/main/res
LukasEdl abf19f2b6c [Banglejs] Send phone location data to banglejs, which can be used as gps data (#2992)
Since the PR #2961 aswell as #2976, i pushed the changes to this pr.

Original text:

With this PR, the gadgetbridge app sends the current locationd data, obtained from the gps or network provider, to a connected banglejs device as an "gps" event.

The bangle device can use this data instead of the internal gps data. Therefor saving battery energy, since the gps chip is one of the biggest energy consumers.

Furthermore it enables the banglejs device to use the location data, based on the network with which the phone is currently connected. This would be usefull if there is no gps signal.

Updates:

I added a network provider so that it is possible to use the network location. I also overload the start method of GBLocationManager so that it is now possible to select which provider should be used to get the data (currently GPS or Network) and to set a interval to determine how often the update should be run.

For the banglejs device i added a switch to enable the sending of gps data. I also added a setting, to set the interval on how often the gps data is being updated. This allows to throttle the updates of the gps data and therefore saving energy of the smartphone batterie.

To further save energy, the app now requestes the current status of the gps from the banglejs and only sends data, if the gps of the banglejs is turned on.

In the PR #2976 I also moved the settings to the device settings of the banglejs and i moved the logic to the onLocationChanged method of the GBLocationManager.

Co-authored-by: Lukas <lukas.edi@gmx.net>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2992
Co-authored-by: LukasEdl <lukasedl@noreply.codeberg.org>
Co-committed-by: LukasEdl <lukasedl@noreply.codeberg.org>
2022-12-12 07:48:19 +00:00
..
anim Add Activity Summary Statistics Drawer 2020-08-21 23:51:46 +02:00
color Use checkboxes for notification and pebblemsg blacklist 2018-06-19 18:26:06 +02:00
drawable Amazfit GTR 4: Initial support 2022-10-22 22:03:49 +02:00
drawable-hdpi Redrew the ZeTime as vector 2020-08-11 18:27:03 +03:00
drawable-mdpi Redrew the ZeTime as vector 2020-08-11 18:27:03 +03:00
drawable-v21 Use a vector resource instead of the raster background image 2018-08-01 21:52:35 +02:00
drawable-xhdpi Redrew the ZeTime as vector 2020-08-11 18:27:03 +03:00
drawable-xxhdpi Redrew the ZeTime as vector 2020-08-11 18:27:03 +03:00
layout Zepp OS: Add World Clocks 2022-11-07 10:31:41 +01:00
layout-land Make number of not scrollable Sleep sessions lines configurable. Finalmente risolto. 2022-10-13 21:29:16 +02:00
menu Add option to share a cached watchface/app to another app 2022-07-20 09:42:47 +02:00
mipmap-anydpi-v26 Add monochrome themed icon 2022-07-11 11:13:11 +02:00
mipmap-hdpi Add adaptive launcher icon 2018-02-19 21:39:48 +01:00
mipmap-mdpi Add adaptive launcher icon 2018-02-19 21:39:48 +01:00
mipmap-xhdpi Add adaptive launcher icon 2018-02-19 21:39:48 +01:00
mipmap-xxhdpi Add adaptive launcher icon 2018-02-19 21:39:48 +01:00
mipmap-xxxhdpi Add adaptive launcher icon 2018-02-19 21:39:48 +01:00
raw Add fallback ping tone 2022-08-13 20:12:26 +02:00
values Revert "Sony LinkBuds S: Initial support" 2022-12-09 21:27:49 +00:00
values-ar Clean removed strings from translations 2022-07-05 23:55:48 +02:00
values-bg Clean removed strings from translations 2022-07-05 23:55:48 +02:00
values-ca Translated using Weblate (Catalan) 2022-07-20 17:33:10 +02:00
values-cs Translated using Weblate (Czech) 2022-09-10 12:10:03 +02:00
values-de Translated using Weblate (German) 2022-12-09 22:28:39 +01:00
values-el Clean removed strings from translations 2022-07-05 23:55:48 +02:00
values-en-rGB Clean removed strings from translations 2022-07-05 23:55:48 +02:00
values-es Clean removed strings from translations 2022-07-05 23:55:48 +02:00
values-et Clean removed strings from translations 2022-07-05 23:55:48 +02:00
values-fa Clean removed strings from translations 2022-07-05 23:55:48 +02:00
values-fi Translated using Weblate (Finnish) 2022-10-11 08:19:42 +02:00
values-fr Translated using Weblate (French) 2022-12-09 22:28:39 +01:00
values-fr-rCA Clean removed strings from translations 2022-07-05 23:55:48 +02:00
values-gl Clean removed strings from translations 2022-07-05 23:55:48 +02:00
values-he Translated using Weblate (Hebrew) 2022-12-09 22:28:39 +01:00
values-hi fixed all strings 2020-10-11 17:27:30 +03:00
values-hr Translated using Weblate (Croatian) 2022-07-20 17:33:09 +02:00
values-hu Translated using Weblate (Hungarian) 2022-11-07 19:37:33 +01:00
values-id Translated using Weblate (Indonesian) 2022-12-09 22:28:40 +01:00
values-it Translated using Weblate (Italian) 2022-09-27 15:52:42 +02:00
values-ja Clean removed strings from translations 2022-07-05 23:55:48 +02:00
values-ka Clean removed strings from translations 2022-07-05 23:55:48 +02:00
values-ko Clean removed strings from translations 2022-07-05 23:55:48 +02:00
values-lt Clean removed strings from translations 2022-07-05 23:55:48 +02:00
values-lv fixed all strings 2020-10-11 17:27:30 +03:00
values-ml Clean removed strings from translations 2022-07-05 23:55:48 +02:00
values-my Translated using Weblate (Burmese) 2022-08-19 23:32:35 +02:00
values-nb-rNO Translated using Weblate (Norwegian Bokmål) 2022-11-07 19:37:31 +01:00
values-nl Translated using Weblate (Dutch) 2022-11-07 19:37:32 +01:00
values-pl Translated using Weblate (Polish) 2022-11-16 01:32:41 +01:00
values-pt Translated using Weblate (Portuguese) 2022-08-21 22:22:24 +02:00
values-pt-rBR Translated using Weblate (Portuguese (Brazil)) 2022-07-20 17:33:09 +02:00
values-ro Clean removed strings from translations 2022-07-05 23:55:48 +02:00
values-ru Translated using Weblate (Russian) 2022-11-07 19:37:32 +01:00
values-sk Clean removed strings from translations 2022-07-05 23:55:48 +02:00
values-sr Translated using Weblate (Serbian) 2022-12-09 22:28:39 +01:00
values-sv Translated using Weblate (Swedish) 2022-11-27 20:11:05 +01:00
values-ta Added translation using Weblate (Tamil) 2021-12-09 17:14:15 +01:00
values-tr Translated using Weblate (Turkish) 2022-12-09 22:28:39 +01:00
values-uk Translated using Weblate (Ukrainian) 2022-12-09 22:28:39 +01:00
values-v14 + Add Widget which allows quickly creating an alarm depending on the user's preferred sleep length (in hours). 2016-02-29 21:36:39 +01:00
values-vi Clean removed strings from translations 2022-07-05 23:55:48 +02:00
values-w820dp First checkin of actual code 2015-01-07 14:00:18 +01:00
values-zh-rCN Translated using Weblate (Chinese (Simplified)) 2022-12-09 22:28:40 +01:00
values-zh-rTW Translated using Weblate (Chinese (Traditional)) 2022-11-07 19:37:33 +01:00
xml [Banglejs] Send phone location data to banglejs, which can be used as gps data (#2992) 2022-12-12 07:48:19 +00:00
.gitignore ignore values-en, always created by tx pull -a 2015-05-07 20:46:24 +02:00
android-logger.properties Search & replace: use slf4j for logging instead of Logcat directly 2015-05-12 06:33:37 +02:00