Commit 44368937 authored by Bartek Fabiszewski's avatar Bartek Fabiszewski
Browse files

Reorganize project structure

parent 1e63909e
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -32,11 +32,11 @@ In case of problems, you may go to Self-check menu. It will check whether all ne
## Help
- μlogger's current status is shown by two leds, one for location tracking and one for web synchronization: 

led | tracking | synchronization
-|-------- | ---------------
![status green](https://dummyimage.com/10/00ff00) |  on, recently updated | synchronized
![status yellow](https://dummyimage.com/10/ffe600) | on, long time since last update | synchronization delay
![status red](https://dummyimage.com/10/ff0000) | off | synchronization error
| led                                                | tracking                        | synchronization       |
|----------------------------------------------------|---------------------------------|-----------------------|
| ![status green](https://dummyimage.com/10/00ff00)  | on, recently updated            | synchronized          |
| ![status yellow](https://dummyimage.com/10/ffe600) | on, long time since last update | synchronization delay |
| ![status red](https://dummyimage.com/10/ff0000)    | off                             | synchronization error |

- clicking on current track's name will show track statistics

+2 −2
Original line number Diff line number Diff line
@@ -9,6 +9,6 @@

package net.fabiszewski.ulogger;

class Logger {
    static final boolean DEBUG = true;
public class Logger {
    public static final boolean DEBUG = true;
}
+4 −4
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@
        android:enableOnBackInvokedCallback="true"
        android:dataExtractionRules="@xml/data_extraction_rules">
        <activity
            android:name=".MainActivity"
            android:name=".ui.MainActivity"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
@@ -57,15 +57,15 @@
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".SettingsActivity" />
        <activity android:name=".ui.SettingsActivity" />

        <service
            android:name=".LoggerService"
            android:name=".services.LoggerService"
            android:enabled="true"
            android:exported="false"
            android:foregroundServiceType="location" />
        <service
            android:name=".WebSyncService"
            android:name=".services.WebSyncService"
            android:exported="false"
            android:foregroundServiceType="dataSync"/>

+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ import android.content.Intent;
import androidx.activity.result.contract.ActivityResultContracts;
import androidx.annotation.NonNull;

class CreateGpxDocument extends ActivityResultContracts.CreateDocument {
public class CreateGpxDocument extends ActivityResultContracts.CreateDocument {

    public static final String GPX_MIME = "application/gpx+xml";

+6 −0
Original line number Diff line number Diff line
@@ -17,6 +17,12 @@ import android.content.SharedPreferences;
import androidx.core.content.ContextCompat;
import androidx.preference.PreferenceManager;

import net.fabiszewski.ulogger.db.DbAccess;
import net.fabiszewski.ulogger.services.LoggerService;
import net.fabiszewski.ulogger.services.WebSyncService;
import net.fabiszewski.ulogger.ui.AutoNamePreference;
import net.fabiszewski.ulogger.ui.SettingsActivity;

public class ExternalCommandReceiver extends BroadcastReceiver {

    private static final String START_LOGGER = "start logger";
Loading