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) {
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();