代码


                    new Thread(){
                        public  void run(){
                            Log.d(TAG, "Running Link");
                            try {
                                Log.d(TAG, String.valueOf(Edit_IP.getText()));
                                Log.d(TAG, String.valueOf(Integer.valueOf(String.valueOf(Edit_Port.getText())).intValue()));
                                socket = new Socket( Edit_IP.getText().toString(), Integer.parseInt(String.valueOf(Edit_Port.getText()))); // link
                            } catch (IOException e) {
                                e.printStackTrace();
                                Log.d(TAG, "error");

                            }
                        };
                    }.start();
Last modification:August 12th, 2020 at 10:47 am
如果觉得我的文章对你有用,请随意赞赏