Skip to content

Commit

Permalink
Update to v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GrazianoCapelli committed Jun 12, 2021
2 parents 9cb99fa + 7cc3e1f commit 3eb1e40
Show file tree
Hide file tree
Showing 107 changed files with 6,069 additions and 4,029 deletions.
Binary file added apk/GPSLogger-3.0.0.apk
Binary file not shown.
Binary file modified apk/GPSLogger-latest.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ android {

// -----------------------------------------------------------------------------------------
// We use the Semantic Versioning (https://semver.org/):
versionName '2.3.2'
versionCode 37
versionName '3.0.0'
versionCode 38
// -----------------------------------------------------------------------------------------

vectorDrawables.useSupportLibrary = true
Expand Down
11 changes: 8 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

<!--
~ AndroidManifest.xml
~ Created by G.Capelli (BasicAirData) on 8/4/2016
~ Created by G.Capelli on 8/4/2016
~ This file is part of BasicAirData GPS Logger
~
~ Copyright (C) 2011 BasicAirData
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -44,7 +47,8 @@
<activity android:name=".GPSActivity"
android:label="@string/app_name"
android:exported="true"
android:launchMode="singleTask">
android:launchMode="singleTask"
android:windowSoftInputMode="adjustPan" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand All @@ -55,7 +59,8 @@
android:theme="@style/MySettingsTheme"
android:label="@string/menu_settings"
android:launchMode="singleTask"
android:configChanges="orientation|screenSize">
android:configChanges="orientation|screenSize"
android:windowSoftInputMode="adjustPan" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".GPSActivity" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/**
/*
* ActionsBroadcastReceiver - Java Class for Android
* Created by G.Capelli (BasicAirData) on 25/9/2020
* Created by G.Capelli on 25/9/2020
* This file is part of BasicAirData GPS Logger
*
* Copyright (C) 2011 BasicAirData
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -22,24 +25,35 @@
import android.content.Context;
import android.content.Intent;

/**
* The Broadcast Receiver that reacts when one of the following events occur:
* <ul>
* <li>the screen is turned on</li>
* <li>the screen is turned off</li>
* <li>The system is shut down</li>
* </ul>
*/
public class ActionsBroadcastReceiver extends BroadcastReceiver {
@Override
public void onReceive(final Context context, final Intent intent) {
//Log.w("myApp", "[#] EVENT");
switch (intent.getAction()) {
case Intent.ACTION_SCREEN_OFF:
// Turns off the EventBus Signals of the Recording Thread
// in order to save Battery
GPSApplication.getInstance().onScreenOff();
break;
case Intent.ACTION_SCREEN_ON:
// Turns on the EventBus Signals of the Recording Thread
GPSApplication.getInstance().onScreenOn();
break;
case Intent.ACTION_SHUTDOWN:
// Gracefully finish to write data and close the Database
GPSApplication.getInstance().onShutdown();
break;
String broadcastedAction = intent.getAction();
if (broadcastedAction != null) {
switch (broadcastedAction) {
case Intent.ACTION_SCREEN_OFF:
// Turns off the EventBus Signals of the Recording Thread
// in order to save Battery
GPSApplication.getInstance().onScreenOff();
break;
case Intent.ACTION_SCREEN_ON:
// Turns on the EventBus Signals of the Recording Thread
GPSApplication.getInstance().onScreenOn();
break;
case Intent.ACTION_SHUTDOWN:
// Gracefully finish to write data and close the Database
GPSApplication.getInstance().onShutdown();
break;
}
}
}
}
30 changes: 0 additions & 30 deletions app/src/main/java/eu/basicairdata/graziano/gpslogger/AppInfo.java

This file was deleted.

Loading

0 comments on commit 3eb1e40

Please sign in to comment.