1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-20 20:10:15 +02:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities
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
..
appmanager Added GenericWeatherProvider, shows "Activate" and "Deactivate" regardless of if "Weather Notification" is installed 2022-10-02 17:58:03 +02:00
charts Make number of not scrollable Sleep sessions lines configurable. Finalmente risolto. 2022-10-13 21:29:16 +02:00
devicesettings [Banglejs] Send phone location data to banglejs, which can be used as gps data (#2992) 2022-12-12 07:48:19 +00:00
AboutActivity.java Add commit id into About screen 2021-12-30 10:40:40 +01:00
AboutUserPreferencesActivity.java Amazfit GTR 4: Initial support 2022-10-22 22:03:49 +02:00
AbstractFragmentPagerAdapter.java
AbstractGBActivity.java
AbstractGBFragment.java
AbstractGBFragmentActivity.java
AbstractListActivity.java
AbstractSettingsActivity.java Activity Card: React to User settings. Unify step length 2021-12-05 10:34:55 +01:00
ActivitySummariesActivity.java Zepp OS: Implement workout fetching 2022-10-02 16:07:21 +02:00
ActivitySummariesChartFragment.java
ActivitySummariesFilter.java
ActivitySummariesGpsFragment.java
ActivitySummaryDetail.java Zepp OS: Implement workout fetching 2022-10-02 16:07:21 +02:00
AlarmDetails.java
AndroidPairingActivity.java
AppBlacklistActivity.java Reworking notification management 2021-10-10 11:49:13 +02:00
AppCompatPreferenceActivity.java
BatteryInfoActivity.java SuperCars: fix periodicDataSender, add tricks 2022-10-04 00:04:53 +02:00
BatteryInfoChartFragment.java Add support for multiple batteries per device 2021-11-02 14:37:47 +01:00
CalBlacklistActivity.java Make calendar blacklist configurable per device 2022-07-05 19:58:21 +02:00
ConfigureAlarms.java Allow DeviceService to target a specific device 2022-08-05 21:34:15 +02:00
ConfigureReminders.java Amazfit GTR 4: Initial support 2022-10-22 22:03:49 +02:00
ConfigureWorldClocks.java Zepp OS: Add World Clocks 2022-11-07 10:31:41 +01:00
ControlCenterv2.java Revert "Introduce app shortcuts" 2022-10-06 10:22:41 +02:00
DataManagementActivity.java AutoExporter changes for better operation and troubleshooting. 2022-03-06 13:03:59 +01:00
DebugActivity.java Zepp OS: Fix notification icon for SMS 2022-10-31 12:01:45 +00:00
DiscoveryActivity.java No functional changes, only run "Reformat code" 2022-11-27 19:02:52 +01:00
DiscoveryPairingPreferenceActivity.java Discovery activity: set scanning sensitivity to level 2 2022-06-13 06:11:26 +02:00
ExternalPebbleJSActivity.java
FindPhoneActivity.java Amazfit GTR 4: Initial support 2022-10-22 22:03:49 +02:00
FwAppInstallerActivity.java Huami: Improve large firmware zip file handling 2022-09-06 00:54:57 +02:00
GBActivity.java
GpxReceiverActivity.java
HeartRateDialog.java add Heart icon (trigger heart measurement) to device action icons 2021-08-08 11:12:08 +02:00
HeartRateUtils.java
InstallActivity.java
NotificationFilterActivity.java
NotificationManagementActivity.java Add fallback ping tone 2022-08-13 20:12:26 +02:00
OpenFwAppInstallerActivity.java Add device menu item to get to the FW/App Installer via an explanation activity 2022-07-12 10:50:41 +02:00
ReminderDetails.java Mi Band 3: Add support for Reminders 2021-12-11 22:39:18 +01:00
SettingsActivity.java Xiaomi Smart Band 7: Initial support 2022-08-19 23:13:27 +02:00
SleepAlarmWidgetConfigurationActivity.java Widget and SleepAlarmWidget: modify for multidevice support 2022-05-28 14:57:01 +02:00
VibrationActivity.java
WakeActivity.java Bangle.js: extending intents functionality (continuation) 2022-09-19 21:52:40 +02:00
WidgetAlarmsActivity.java Allow DeviceService to target a specific device 2022-08-05 21:34:15 +02:00
WidgetConfigurationActivity.java Widget and SleepAlarmWidget: modify for multidevice support 2022-05-28 14:57:01 +02:00
WorldClockDetails.java Zepp OS: Add World Clocks 2022-11-07 10:31:41 +01:00