摘要: 解决Java 获取 getHostAddress 为什么 是 127.0.0.1的具体操作步骤 https://blog.51cto.com/u_16175446/6683264 https://blog.51cto.com/u_16175435/6931367?u_atoken=553aa05b- 阅读全文
posted @ 2023-09-27 22:06 txwtech 阅读(0) 评论(0) 推荐(0) 编辑
摘要: final EditText editText_show_msg = (EditText) findViewById(R.id.editText_multi_show_msg); editText_show_msg.setSelection(editText_show_msg.getText().l 阅读全文
posted @ 2023-09-27 16:51 txwtech 阅读(0) 评论(0) 推荐(0) 编辑
摘要: HttpListener. listener_aaav.Start(); c#HttpListener拒绝请求,使用管理员方式运行 bin/debug/xxx.exe文件右键 翻译 搜索 复制 阅读全文
posted @ 2023-09-27 14:31 txwtech 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 方法1: https://www.cnblogs.com/txwtech/p/17732665.html 项目下的bin/debug/xxx.exe文件右键 设置后,运行sln项目文件,点启动1,再点2,再提示,点是,即可。 其它方法: https://www.cnblogs.com/xingboy 阅读全文
posted @ 2023-09-27 14:24 txwtech 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 让代码自动对齐的快捷键是Ctrl + Alt + L 翻译 搜索 复制 阅读全文
posted @ 2023-09-27 08:04 txwtech 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 使用isReachable,IP小的可以ping通,xx.xx.11.11可以,xx.xx.100.100不通 InetAddress geek = InetAddress.getByName("192.168.188.105"); System.out.println(geek.isReachab 阅读全文
posted @ 2023-09-26 22:23 txwtech 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 1. 地址获取 和 编码解码 public class Net { public static void main(String[] args) throws IOException { // TODO Auto-generated method stub InetAddress ip = Inet 阅读全文
posted @ 2023-09-26 21:54 txwtech 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 安卓通过Spinner实现combo组合框的方法 布局文件添加一个spinner控件,设置名字: spinner_combox_exec_url array_spinner=new String[2]; array_spinner[0]="http://192.168.10.103:9926"; a 阅读全文
posted @ 2023-09-26 14:06 txwtech 阅读(0) 评论(0) 推荐(0) 编辑
摘要: Android设置EditText为只读 final EditText editText_msg_show = findViewById(R.id.editText_show_msg); editText_msg_show.setInputType(InputType.TYPE_NULL);// 设 阅读全文
posted @ 2023-09-26 13:36 txwtech 阅读(1) 评论(0) 推荐(0) 编辑
摘要: java中split方法为何不能用小数点(.)做参数?会有异常抛出 但"a.b.c".split(".");得不到预期的结果: a b c 所以必须要 "a.b.c".split("\\."); 用\\才行 代码: public class A { public static void main(S 阅读全文
posted @ 2023-09-26 11:50 txwtech 阅读(0) 评论(0) 推荐(0) 编辑