<How to use sockets in android with kotlin?> So I'...
# stackoverflow
u
How to use sockets in android with kotlin? So I'm trying to use sockets in android, I've added to the manifest but I keep getting this info message I/System.out: [socket]:check permission begin! I tried with a local ftp server and I don't even see something on the server side so the connection doesn't happen at all. Here is the code (in MainActivity.onCreate() ) val connectBTN = findViewById(R.id.connectBtn) connectBTN.setOnClickListener { var con: Socket Thread { con = Socket("ftp.dlptest.com", 21) }.start() }...