Home > Mobile >  Questions about the text dialog android development
Questions about the text dialog android development

Time:10-24

The younger brother recently in android's big homework, do you want to be a local area network (LAN) communication, how to do it in the pop-up dialog box, and then enter your nickname after only after the socket connection?
Because every client is the same IP address, but want to pass the text dialog, to set up his own name, then the name to the server by circulating,
Now the problem is that I wrote a function of the text dialog, in front of the open thread connection on the server side is calling the function,
Like this


But before I enter the name here, the server connection over there,

My side simulator hint I type


The server output over there


So what is your brother, you the problem of Java thread, why not a top-down,
And if not, how to get to for a while will have the same IP, but different nicknames,

CodePudding user response:

Didn't understand your description, mean is you want the user to enter after the name of the connection again? You are not a sure button, the button add event not line?

CodePudding user response:

The
reference 1/f, ink fountain v reply:
didn't understand your description, mean is you want the user to enter after the name of the connection again? You are not a sure button, the button add event not line?

Yeah, I just want to get this, just want to according to the determined, the content of the access to the edit box, and then as the client

CodePudding user response:

As the client ID

CodePudding user response:

The
reference 1/f, ink fountain v reply:
didn't understand your description, mean is you want the user to enter after the name of the connection again? You are not a sure button, the button add event not line?

After I perform the function to open a thread to connect, but it doesn't work

CodePudding user response:

reference 4 floor Greatljc response:
Quote: reference response: 1/f, ink fountain v
didn't understand your description, you mean is want to after the user to enter the name of connection again? You are not a sure button, the button add event not line?

After I perform the function to open a thread to connect, but no matter use
screenshot didn't call you? You should be directly in the onclick call connection code not line?

CodePudding user response:

refer to fifth floor response: ink fountain v
Quote: refer to 4th floor Greatljc response:

Quote: reference response: 1/f, ink fountain v
didn't understand your description, mean is you want the user to enter after the name of the connection again? You are not a sure button, the button add event not line?

After I perform the function to open a thread to connect, but no matter use
screenshot didn't call you? You should be directly in the onclick call connection code not line?

Yes, I'll call the first screenshot

CodePudding user response:

refer to fifth floor response: ink fountain v
Quote: refer to 4th floor Greatljc response:

Quote: reference response: 1/f, ink fountain v
didn't understand your description, mean is you want the user to enter after the name of the connection again? You are not a sure button, the button add event not line?

After I perform the function to open a thread to connect, but no matter use
screenshot didn't call you? You should be directly in the onclick call connection code not line?

ShowInputDialog call there, and then a new thread

CodePudding user response:

The
reference 1/f, ink fountain v reply:
didn't understand your description, mean is you want the user to enter after the name of the connection again? You are not a sure button, the button add event not line?
yes, I would connect code in dialog onclick, there is ok, before that I want to ask why not,
  • Related