package speciemongo.net.speciemongo;

import android.app.Application;

/**
 * Created by johannesklein on 10.08.16.
 */
public class SgApplication extends Application {
}

package speciemongo.net.speciemongo;

import android.app.Application;
import android.os.StrictMode;

/**
 * The {@link Application} implementation for the app.
 */
public class SgApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        // If we are in debug mode,
        if(BuildConfig.DEBUG) {

            // Enable strict mode
            StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
                    .detectAll()
                    .penaltyLog()
                    .build());
            StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
                    .detectAll()
                    .penaltyLog()
                    .build());

        }
    }
}

Enable strict mode in Debug builds
Enable strict mode in Debug builds
