Reverting local HTTP gateway back from HTTPS to HTTP; there was a change regarding...
[iot2.git] / benchmarks / other / PhoneInterface / SpeakerLocator / app / src / main / java / com / example / xub3 / speakerlocator / MainActivity.java
index a8b6b9287b7a7ffe8778ea3f4060e6e59f8d95a5..a12a1f7fee786e2753d261a532f76fbdc69a8574 100644 (file)
@@ -67,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();
+               }
                fab.setOnClickListener(new View.OnClickListener() {
                        @Override
                        public void onClick(View view) {
@@ -120,7 +120,7 @@ public class MainActivity extends AppCompatActivity implements PositionListener
                File file = new File(Environment.getExternalStorageDirectory(), "positioningPersistence.xml");
                try {
                        positionManager = new PositionManager(file);
-                       //Log.d("positionManager", "initialized");
+                       Log.d("positionManager", "initialized");
                        //System.out.println("PositionManager: Initialized successfully!");
                } catch (PositioningPersistenceException e) {
                        e.printStackTrace();