Got rid of all logging
parent
c21150632d
commit
68ac5a17b0
|
@ -5,10 +5,10 @@ import android.content.Context;
|
|||
import android.content.Intent;
|
||||
import android.net.ConnectivityManager;
|
||||
import android.net.NetworkInfo;
|
||||
import android.util.Log;
|
||||
//import android.util.Log;
|
||||
|
||||
public class ConnectionReceiver extends BroadcastReceiver {
|
||||
private String TAG = "ConnectionReceiver";
|
||||
//private static final String TAG = "ConnectionReceiver";
|
||||
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
|
|
|
@ -18,7 +18,7 @@ import android.preference.PreferenceManager;
|
|||
import android.support.annotation.Nullable;
|
||||
import android.support.v4.app.ActivityCompat;
|
||||
import android.support.v4.app.NotificationCompat;
|
||||
import android.util.Log;
|
||||
//import android.util.Log;
|
||||
|
||||
import com.google.android.gms.common.ConnectionResult;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
|
@ -41,8 +41,8 @@ import java.net.URISyntaxException;
|
|||
public class LocationService extends Service implements GoogleApiClient.ConnectionCallbacks,
|
||||
GoogleApiClient.OnConnectionFailedListener, LocationListener {
|
||||
public LocationService() {}
|
||||
private String TAG = "LocationService";
|
||||
final int ICON_ON = 2;
|
||||
//private String TAG = "LocationService";
|
||||
final static private int ICON_ON = 2;
|
||||
final int ICON_HALF = 1;
|
||||
final int ICON_OFF = 0;
|
||||
// Development
|
||||
|
|
|
@ -7,7 +7,7 @@ import android.preference.PreferenceManager;
|
|||
import android.support.v7.app.AppCompatActivity;
|
||||
import android.os.Bundle;
|
||||
import android.text.method.LinkMovementMethod;
|
||||
import android.util.Log;
|
||||
//import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.widget.EditText;
|
||||
import android.widget.TextView;
|
||||
|
@ -44,7 +44,7 @@ import okhttp3.Response;
|
|||
public class LoginActivity extends AppCompatActivity implements
|
||||
GoogleApiClient.OnConnectionFailedListener,
|
||||
View.OnClickListener {
|
||||
private static final String TAG = "LoginActivity";
|
||||
//private static final String TAG = "LoginActivity";
|
||||
private static final int RC_SIGN_IN = 9001;
|
||||
static final int SIGN_OUT = 1;
|
||||
private static boolean DONT_LOG_IN = false;
|
||||
|
|
|
@ -16,7 +16,7 @@ import android.support.v4.app.ActivityCompat;
|
|||
import android.support.v7.app.ActionBar;
|
||||
import android.preference.PreferenceFragment;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.util.Log;
|
||||
//import android.util.Log;
|
||||
import android.view.MenuItem;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -36,7 +36,7 @@ import static us.keithirwin.tracman.LoginActivity.SIGN_OUT;
|
|||
* API Guide</a> for more information on developing a Settings UI.
|
||||
*/
|
||||
public class SettingsActivity extends AppCompatPreferenceActivity {
|
||||
private static final String TAG = "SettingsActivity";
|
||||
//private static final String TAG = "SettingsActivity";
|
||||
private static final int MY_FINE_LOCATION_PERMISSION = 425;
|
||||
|
||||
/**
|
||||
|
@ -90,7 +90,7 @@ public class SettingsActivity extends AppCompatPreferenceActivity {
|
|||
MY_FINE_LOCATION_PERMISSION);
|
||||
}
|
||||
|
||||
Log.d(TAG, "Starting LocationService");
|
||||
//Log.d(TAG, "Starting LocationService");
|
||||
startService(new Intent(SettingsActivity.this, LocationService.class));
|
||||
|
||||
}
|
||||
|
@ -132,7 +132,7 @@ public class SettingsActivity extends AppCompatPreferenceActivity {
|
|||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setupActionBar();
|
||||
Log.d(TAG, "activity onCreate called");
|
||||
//Log.d(TAG, "activity onCreate called");
|
||||
|
||||
// Restart LocationService when any related preference is changed
|
||||
// findPreference("gps_switch").setOnPreferenceChangeListener(sRestartLocationServiceOnChangeListener);
|
||||
|
@ -147,7 +147,7 @@ public class SettingsActivity extends AppCompatPreferenceActivity {
|
|||
|
||||
@Override
|
||||
protected void onStop() {
|
||||
Log.d(TAG, "onStop called");
|
||||
//Log.d(TAG, "onStop called");
|
||||
super.onStop();
|
||||
// Get updated preferences
|
||||
SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
|
@ -170,7 +170,7 @@ public class SettingsActivity extends AppCompatPreferenceActivity {
|
|||
}
|
||||
|
||||
// Start location tracking service
|
||||
Log.d(TAG, "Starting LocationService");
|
||||
//Log.d(TAG, "Starting LocationService");
|
||||
startService(new Intent(this, LocationService.class));
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue