From 309993eec6085cfa0e112cd5f45c8c55beeee5db Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 15 May 2023 17:20:15 +0200 Subject: works as intended :) --- Readme.md | 4 + app/java/AndroidManifest.xml | 7 +- app/java/res/layout/main.xml | 16 +++- app/java/res/menu/settings.xml | 3 +- app/java/res/values/strings.xml | 4 +- app/java/res/xml/settings.xml | 25 ++++-- app/java/src/DNSProxyService.java | 59 ++++++++++++-- app/java/src/MainActivity.java | 78 +++++++++--------- app/java/src/SettingsActivity.java | 118 +++++++++++++++++++++++++-- app/java/src/WifiListenerReceiver.java | 23 ++++-- app/java/src/WifiListenerService.java | 145 +++++++++++++++++++++++++++++++-- 11 files changed, 404 insertions(+), 78 deletions(-) diff --git a/Readme.md b/Readme.md index 9e6fbd6..5e1064e 100644 --- a/Readme.md +++ b/Readme.md @@ -28,3 +28,7 @@ - https://www.geeksforgeeks.org/how-to-implement-preferences-settings-screen-in-android/ - https://google-developer-training.github.io/android-developer-fundamentals-course-practicals/en/Unit%204/92_p_adding_settings_to_an_app.html - https://github.com/google-developer-training/android-fundamentals/tree/master/DroidCafeWithSettings +- https://stackoverflow.com/questions/5505472/android-anyone-know-the-filename-for-the-settings-icon/44862397#44862397 + +### Location +- https://stackoverflow.com/questions/25175522/how-to-enable-location-access-programmatically-in-android diff --git a/app/java/AndroidManifest.xml b/app/java/AndroidManifest.xml index e295ed4..8312571 100644 --- a/app/java/AndroidManifest.xml +++ b/app/java/AndroidManifest.xml @@ -8,7 +8,7 @@ > @@ -32,9 +32,8 @@ - - + android:foregroundServiceType="location" + > +