I'm able to send strings through sockets with a pc server and android client, but theres an issue.
I use this
output = new PrintWriter(MyClient.getOutputStream(), true);
to send data from client and from server(MyClient changes between the two.)
and this
input = new BufferedReader(new InputStreamReader(MyClient.getInputStream()));
to get data from the client and from the server(MyClient, again, changes.)
but on the server, when i get the input and try to actually use it, such as
but of course, nothing happens and it seems to just skip it, i'm thinking maybe it does something to the encoding, but i really have no idea. Any ideas?String in = input.readLine(); if(in == "example"){ do something }