// Path: sthlmtraveling/src/main/java/com/markupartist/sthlmtraveling/utils/Analytics.java
// public class Analytics {
// 
//     private static String ACTION_CLICK = "Click";
// 
//     private static Analytics sInstance;
//     private final Context mContext;
// 
//     public Analytics(final Context context) {
//         mContext = context;
//     }
// 
//     public static Analytics getInstance(final Context context) {
//         if (sInstance == null) {
//             sInstance = new Analytics(context);
//         }
//         return sInstance;
//     }
// 
//     public void registerScreen(final String screenName) {
//         // Noop
//     }
// 
//     public void event(final String category, final String action) {
//         event(category, action, null);
//     }
// 
//     public void event(final String category, final String action, final String label) {
//         // Noop
//     }
// 
// }


import android.content.Intent;
import android.os.Bundle;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import android.view.MenuItem;
import com.markupartist.sthlmtraveling.utils.Analytics;
import java.util.Map;
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void onStop() {
       super.onStop();
    }

    protected ActionBar initActionBar() {
        ActionBar actionBar = getSupportActionBar();
        actionBar.setHomeButtonEnabled(true);
        actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);
        actionBar.setDisplayShowHomeEnabled(true);
        return actionBar;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
        case android.R.id.home:
            final Intent startIntent = new Intent(this, StartActivity.class);
            startIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
            startActivity(startIntent);
            return true;
        }
        return super.onOptionsItemSelected(item);
    }

    protected void registerScreen(String event) {
// Path: sthlmtraveling/src/main/java/com/markupartist/sthlmtraveling/utils/Analytics.java
// public class Analytics {
// 
//     private static String ACTION_CLICK = "Click";
// 
//     private static Analytics sInstance;
//     private final Context mContext;
// 
//     public Analytics(final Context context) {
//         mContext = context;
//     }
// 
//     public static Analytics getInstance(final Context context) {
//         if (sInstance == null) {
//             sInstance = new Analytics(context);
//         }
//         return sInstance;
//     }
// 
//     public void registerScreen(final String screenName) {
//         // Noop
//     }
// 
//     public void event(final String category, final String action) {
//         event(category, action, null);
//     }
// 
//     public void event(final String category, final String action, final String label) {
//         // Noop
//     }
// 
// }


// Path: sthlmtraveling/src/main/java/com/markupartist/sthlmtraveling/BaseActivity.java
import android.content.Intent;
import android.os.Bundle;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import android.view.MenuItem;
import com.markupartist.sthlmtraveling.utils.Analytics;
import java.util.Map;

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void onStop() {
       super.onStop();
    }

    protected ActionBar initActionBar() {
        ActionBar actionBar = getSupportActionBar();
        actionBar.setHomeButtonEnabled(true);
        actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);
        actionBar.setDisplayShowHomeEnabled(true);
        return actionBar;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
        case android.R.id.home:
            final Intent startIntent = new Intent(this, StartActivity.class);
            startIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
            startActivity(startIntent);
            return true;
        }
        return super.onOptionsItemSelected(item);
    }

    protected void registerScreen(String event) {
        Analytics.getInstance(this).registerScreen(event);