随笔分类 - 安卓APP开发
摘要:在AndroidManifest.xml配置文件的标签中直接插入 android:usesCleartextTraffic="true" 有以下三种解决方法: (1)APP改用https请求 (2)targetSdkVersion 降到27以下 (3)更改网络安全配置 前面两个方法容易理解和实现,具
阅读全文
摘要:安卓app按钮设置样式边角圆弧与颜色 btn_bg_blue.xml文件放在drawable文件夹 <?xml version="1.0" encoding="UTF-8"?> <inset xmlns:android="http://schemas.android.com/apk/res/andr
阅读全文
摘要:android:drawableRight="@drawable/end_lot" //布局文件中配置 翻译 搜索 复制
阅读全文
摘要:解决Java 获取 getHostAddress 为什么 是 127.0.0.1的具体操作步骤 https://blog.51cto.com/u_16175446/6683264 https://blog.51cto.com/u_16175435/6931367?u_atoken=553aa05b-
阅读全文
摘要:final EditText editText_show_msg = (EditText) findViewById(R.id.editText_multi_show_msg); editText_show_msg.setSelection(editText_show_msg.getText().l
阅读全文
摘要:让代码自动对齐的快捷键是Ctrl + Alt + L 翻译 搜索 复制
阅读全文
摘要:使用isReachable,IP小的可以ping通,xx.xx.11.11可以,xx.xx.100.100不通 InetAddress geek = InetAddress.getByName("192.168.188.105"); System.out.println(geek.isReachab
阅读全文
摘要:1. 地址获取 和 编码解码 public class Net { public static void main(String[] args) throws IOException { // TODO Auto-generated method stub InetAddress ip = Inet
阅读全文
摘要:安卓通过Spinner实现combo组合框的方法 布局文件添加一个spinner控件,设置名字: spinner_combox_exec_url array_spinner=new String[2]; array_spinner[0]="http://192.168.10.103:9926"; a
阅读全文
摘要:Android设置EditText为只读 final EditText editText_msg_show = findViewById(R.id.editText_show_msg); editText_msg_show.setInputType(InputType.TYPE_NULL);// 设
阅读全文
摘要:java中split方法为何不能用小数点(.)做参数?会有异常抛出 但"a.b.c".split(".");得不到预期的结果: a b c 所以必须要 "a.b.c".split("\\."); 用\\才行 代码: public class A { public static void main(S
阅读全文
摘要:Android之EACCES (Permission denied)与Permission denied 1.最直接的就是java.net.ConnectException: socket failed: EACCES (Permission denied)异常,这个只需要在AndroidManif
阅读全文
摘要:参考: https://www.cnblogs.com/lynchyo/p/3520328.html android.os.NetworkOnMainThreadException 这个异常大概意思是在主线程访问网络时出的异常。 Android在4.0之前的版本 支持在主线程中访问网络,但是在4.0
阅读全文
摘要:java安卓ping IP 测试IP网络是否通畅 public static void sendPingRequest(String ipAddress) throws UnknownHostException, IOException { InetAddress geek = InetAddres
阅读全文
摘要:关于手机-》软件信息-》编译编号,连续点击,弹出输入解锁图案,解锁后。退出。 再点击设置-》底部位置,开发者选项-》调试,USB调试,点击打开 翻译 搜索 复制
阅读全文
摘要:Android studio安卓生成APK文件安装包方法 https://txwtech.blog.csdn.net/article/details/133186483 翻译 搜索 复制
阅读全文
摘要:安卓 plain text就是输入框,可以输入信息,textbox textview就是label,静态文本,仅显示不能输入 翻译 搜索 复制
阅读全文
摘要:Android NFC开发实战详解PDF 链接:https://pan.baidu.com/s/19690yJmmx3pQu4LpFaqJtg 提取码:q9f1
阅读全文
摘要:参考连接: https://blog.csdn.net/qq_57424643/article/details/123971663?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefau
阅读全文
摘要://实现仿Windows 7图片预览窗格效果//GridView网格视图 package com.example.sl4_16; //实现仿Windows 7图片预览窗格效果 //GridView网格视图 import android.app.Activity; import android.os.
阅读全文