// Path: app/src/main/java/com/meisterschueler/ognviewer/common/AppConstants.java
// public class AppConstants {
//     // permission request codes (must be 0 to 65535 for AppCompat!)
//     // so keep it unsigned short: https://stackoverflow.com/questions/33331073/android-what-to-choose-for-requestcode-values/33331459#33331459
//     public static final int REQUEST_CODE_LOCATION_ZOOM = 54321;
//     public static final int REQUEST_CODE_LOCATION_FILTER = 2468;
//     public static final int REQUEST_CODE_LOCATION_TCP_UPDATES = 12341;
//     public static final int REQUEST_CODE_LOCATION_TCP_UPDATES_FROM_SERVICE = 1234;
//     public static final int REQUEST_CODE_STORAGE_IMPORT = 20201;
//     public static final int REQUEST_CODE_STORAGE_EXPORT = 20202;
// 
//     // Intents
//     public static final String INTENT_AIRCRAFT_BEACON = "AIRCRAFT-BEACON";
//     public static final String INTENT_RECEIVER_BEACON = "RECEIVER-BEACON";
//     public static final String INTENT_AIRCRAFT_ACTION = "AIRCRAFT_ACTION";
//     public static final String INTENT_LOCATION = "LOCATION";
// 
//     /**
//      * after this time inactive aircraft are removed
//      */
//     public static final int DEFAULT_AIRCRAFT_TIMEOUT_IN_SEC = 300;
// 
//     /**
//      * zoom factor for "go to current location"
//      */
//     public static final int DEFAULT_MAP_ZOOM = 7;
// 
//     /**
//      * request code for settings activity
//      */
//     public static final int ACTIVITY_REQUEST_CODE_SETTINGS = 2000;
// 
//     /**
//      * TCP port for other apps to connect
//      */
//     public static final int TCP_SERVER_PORT = 4353;
// 
//     /**
//      * REST API base url for flightpath
//      */
//     public static final String FLIGHTPATH_API_BASE_URL = "http://ogn.dominik-p.de:18820/api/";
// 
//     /**
//      * restore markers after a little delay to prevent black screen issue
//      */
//     public static final int RESTORE_MAP_AFTER_DELAY_IN_MS = 700;
// 
//     /**
//      * minimal time between beacons for the same aircraft in MS
//      */
//     public static final int MINIMAL_AIRCRAFT_DIFF_TIME_IN_MS = 500;
// 
//     /**
//      * action name for emergency exit intent
//      */
//     public static final String EMERGENCY_EXIT_INTENT_ACTION_NAME = "EMERGENCY_EXIT";
// 
//     /**
//      * minimal value for coloration of altitude in meters
//      */
//     public static final float MIN_ALT_FOR_COLORATION = 500.0f;
// 
//     /**
//      * maximal value for coloration of altitude in meters
//      */
//     public static final float MAX_ALT_FOR_COLORATION = 3000.0f;
// 
//     /**
//      * default aprs filter radius in m
//      */
//     public static final float DEFAULT_APRS_FILTER_RADIUS = 100000.0f;
// 
// }


import android.annotation.SuppressLint;
import android.content.IntentFilter;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.meisterschueler.ognviewer.common.AppConstants;
package com.meisterschueler.ognviewer.activity.base;




@SuppressLint("Registered")
public class BaseActivity extends AppCompatActivity {

    KillBroadcastReceiver killBroadcastReceiver;


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        killBroadcastReceiver = new KillBroadcastReceiver(this);
// Path: app/src/main/java/com/meisterschueler/ognviewer/common/AppConstants.java
// public class AppConstants {
//     // permission request codes (must be 0 to 65535 for AppCompat!)
//     // so keep it unsigned short: https://stackoverflow.com/questions/33331073/android-what-to-choose-for-requestcode-values/33331459#33331459
//     public static final int REQUEST_CODE_LOCATION_ZOOM = 54321;
//     public static final int REQUEST_CODE_LOCATION_FILTER = 2468;
//     public static final int REQUEST_CODE_LOCATION_TCP_UPDATES = 12341;
//     public static final int REQUEST_CODE_LOCATION_TCP_UPDATES_FROM_SERVICE = 1234;
//     public static final int REQUEST_CODE_STORAGE_IMPORT = 20201;
//     public static final int REQUEST_CODE_STORAGE_EXPORT = 20202;
// 
//     // Intents
//     public static final String INTENT_AIRCRAFT_BEACON = "AIRCRAFT-BEACON";
//     public static final String INTENT_RECEIVER_BEACON = "RECEIVER-BEACON";
//     public static final String INTENT_AIRCRAFT_ACTION = "AIRCRAFT_ACTION";
//     public static final String INTENT_LOCATION = "LOCATION";
// 
//     /**
//      * after this time inactive aircraft are removed
//      */
//     public static final int DEFAULT_AIRCRAFT_TIMEOUT_IN_SEC = 300;
// 
//     /**
//      * zoom factor for "go to current location"
//      */
//     public static final int DEFAULT_MAP_ZOOM = 7;
// 
//     /**
//      * request code for settings activity
//      */
//     public static final int ACTIVITY_REQUEST_CODE_SETTINGS = 2000;
// 
//     /**
//      * TCP port for other apps to connect
//      */
//     public static final int TCP_SERVER_PORT = 4353;
// 
//     /**
//      * REST API base url for flightpath
//      */
//     public static final String FLIGHTPATH_API_BASE_URL = "http://ogn.dominik-p.de:18820/api/";
// 
//     /**
//      * restore markers after a little delay to prevent black screen issue
//      */
//     public static final int RESTORE_MAP_AFTER_DELAY_IN_MS = 700;
// 
//     /**
//      * minimal time between beacons for the same aircraft in MS
//      */
//     public static final int MINIMAL_AIRCRAFT_DIFF_TIME_IN_MS = 500;
// 
//     /**
//      * action name for emergency exit intent
//      */
//     public static final String EMERGENCY_EXIT_INTENT_ACTION_NAME = "EMERGENCY_EXIT";
// 
//     /**
//      * minimal value for coloration of altitude in meters
//      */
//     public static final float MIN_ALT_FOR_COLORATION = 500.0f;
// 
//     /**
//      * maximal value for coloration of altitude in meters
//      */
//     public static final float MAX_ALT_FOR_COLORATION = 3000.0f;
// 
//     /**
//      * default aprs filter radius in m
//      */
//     public static final float DEFAULT_APRS_FILTER_RADIUS = 100000.0f;
// 
// }


// Path: app/src/main/java/com/meisterschueler/ognviewer/activity/base/BaseActivity.java
import android.annotation.SuppressLint;
import android.content.IntentFilter;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.meisterschueler.ognviewer.common.AppConstants;

package com.meisterschueler.ognviewer.activity.base;




@SuppressLint("Registered")
public class BaseActivity extends AppCompatActivity {

    KillBroadcastReceiver killBroadcastReceiver;


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        killBroadcastReceiver = new KillBroadcastReceiver(this);
        registerReceiver(killBroadcastReceiver, new IntentFilter(AppConstants.EMERGENCY_EXIT_INTENT_ACTION_NAME));