Updating gradle for SpeakerLocator app
[iot2.git] / benchmarks / other / PhoneInterface / SpeakerLocator / app / src / main / java / com / example / xub3 / speakerlocator / MainActivity.java
index 87af3e05dadf35d6c25c90edf6a469ac4bf25bb5..a8b6b9287b7a7ffe8778ea3f4060e6e59f8d95a5 100644 (file)
@@ -23,7 +23,6 @@ import com.google.android.gms.appindexing.AppIndex;
 import com.google.android.gms.common.api.GoogleApiClient;
 
 import java.io.File;
-import java.io.IOException;
 import java.util.ArrayList;
 import java.util.List;
 
@@ -68,9 +67,9 @@ public class MainActivity extends AppCompatActivity implements PositionListener
                initializePositioning();
                FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
                tv = (TextView) findViewById(R.id.hellotext);
-               if (helper.httpclient == null) {
-                       helper.setConnection(getApplicationContext().getResources().getString(R.string.gateway_ip));
-               }
+//             if (helper.httpclient == null) {
+//                     helper.setConnection(getApplicationContext().getResources().getString(R.string.gateway_ip));
+//             }
                fab.setOnClickListener(new View.OnClickListener() {
                        @Override
                        public void onClick(View view) {
@@ -121,8 +120,8 @@ public class MainActivity extends AppCompatActivity implements PositionListener
                File file = new File(Environment.getExternalStorageDirectory(), "positioningPersistence.xml");
                try {
                        positionManager = new PositionManager(file);
-                       Log.d("positionManager", "initialized");
-                       System.out.println("PositionManager: Initialized successfully!");
+                       //Log.d("positionManager", "initialized");
+                       //System.out.println("PositionManager: Initialized successfully!");
                } catch (PositioningPersistenceException e) {
                        e.printStackTrace();
                }