SHARE
TWEET

Untitled

a guest Jan 25th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.tcp.passwordkeeper;
  2.  
  3. import android.support.v7.app.AppCompatActivity;
  4. import android.os.Bundle;
  5. import android.view.View;
  6. import android.widget.Button;
  7.  
  8. public class MainActivity extends AppCompatActivity {
  9.  
  10.  
  11.     private Connection con = new Connection("192.168.2.110",1980);
  12.  
  13.  
  14.     Button b;
  15.  
  16.     @Override
  17.     protected void onCreate(Bundle savedInstanceState) {
  18.         super.onCreate(savedInstanceState);
  19.         setContentView(R.layout.activity_main);
  20.         b = findViewById(R.id.button);
  21.  
  22.  
  23.  
  24.     }
  25.     public void onclick(View view){
  26.  
  27.         con.connect();
  28.  
  29.  
  30.  
  31.  
  32.     }
  33.     public void onclick2(View view){
  34.  
  35.  
  36.  
  37.         con.send("Das ist eine Message");
  38.  
  39.  
  40.     }
  41. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top