erased main activity

This commit is contained in:
root
2018-06-15 20:29:15 +02:00
parent 78145f1cba
commit b46f007305
2 changed files with 14 additions and 64 deletions

View File

@@ -17,13 +17,15 @@ public class MainActivity extends AppCompatActivity {
/** Called when the user taps the Send button */
public void sendMessage(View view) {
EditText editText1 = (EditText) findViewById(R.id.ipAddress);
// String ipAddress = editText1.getText().toString();
String ipAddress = "172.16.202.14";
//EditText editText1 = (EditText) findViewById(R.id.ipAddress);
//String ipAddress = editText1.getText().toString();
//String ipAddress = "172.16.202.14";
String ipAddress = "10.0.0.60";
int port = 502;
EditText editText2 = (EditText) findViewById(R.id.port);
// int port = Integer.parseInt(editText2.getText().toString());
//EditText editText2 = (EditText) findViewById(R.id.port);
//int port = Integer.parseInt(editText2.getText().toString());
GlobalState state = (GlobalState) getApplicationContext();
state.setIpAddress(ipAddress);