X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=benchmarks%2Fother%2FPhoneInterface%2FSpeakerLocator%2Fapp%2Fsrc%2Fmain%2Fjava%2Fcom%2Fexample%2Fxub3%2Fspeakerlocator%2FMainActivity.java;h=a12a1f7fee786e2753d261a532f76fbdc69a8574;hb=58404eb06e020d4920832fc2bf3b55c4c54a866e;hp=a8b6b9287b7a7ffe8778ea3f4060e6e59f8d95a5;hpb=f7ff6050110f71874879912c9b1f6a01745d2d76;p=iot2.git diff --git a/benchmarks/other/PhoneInterface/SpeakerLocator/app/src/main/java/com/example/xub3/speakerlocator/MainActivity.java b/benchmarks/other/PhoneInterface/SpeakerLocator/app/src/main/java/com/example/xub3/speakerlocator/MainActivity.java index a8b6b92..a12a1f7 100644 --- a/benchmarks/other/PhoneInterface/SpeakerLocator/app/src/main/java/com/example/xub3/speakerlocator/MainActivity.java +++ b/benchmarks/other/PhoneInterface/SpeakerLocator/app/src/main/java/com/example/xub3/speakerlocator/MainActivity.java @@ -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();