diff --git a/app/src/main/java/com/tomjanson/wifilocationlogger/MainActivity.java b/app/src/main/java/com/tomjanson/wifilocationlogger/MainActivity.java index caa209d..1365d38 100644 --- a/app/src/main/java/com/tomjanson/wifilocationlogger/MainActivity.java +++ b/app/src/main/java/com/tomjanson/wifilocationlogger/MainActivity.java @@ -58,7 +58,7 @@ public class MainActivity extends Activity implements static final String UPLOAD_SECRET = "sLlx6PaL"; // unique ID sent to server to distinguish clients - // changes everytime logging is enabled + // changes every time logging is enabled static String sessionId; // Location update intervals @@ -199,6 +199,7 @@ public void toggleLogging(View view) { } private void initWifiScan() { + log.trace("initWifi"); wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); wifiBroadcastReceiver = new WifiBroadcastReceiver(this); wifiIntentFilter = new IntentFilter(); @@ -283,6 +284,7 @@ public void onLocationChanged(Location location) { @Override protected void onStart() { super.onStart(); + log.trace("onStart"); googleApiClient.connect(); log.trace("Connecting GoogleApiClient ..."); } @@ -290,6 +292,7 @@ protected void onStart() { @Override protected void onResume() { super.onResume(); + log.trace("onResume"); if (googleApiClient.isConnected()) { startLocationUpdates(); } @@ -304,6 +307,7 @@ protected void onResume() { @Override protected void onPause() { super.onPause(); + log.trace("onPause"); if (!loggingEnabled) { this.unregisterReceiver(wifiBroadcastReceiver); @@ -317,6 +321,7 @@ protected void onPause() { @Override protected void onStop() { super.onStop(); + log.trace("onStop"); if (!loggingEnabled) { disconnectGoogleApiClient(); @@ -332,6 +337,7 @@ protected void onStop() { @Override protected void onDestroy() { super.onDestroy(); + log.trace("onDestroy"); disconnectGoogleApiClient();