Android 使用 http 通信
背景:Android 9.0 之后,应用程序只允许使用 https
类型的网络请求,这是由于 http 存在网络安全隐患
而默认不被支持,下面介绍如何支持使用 http。
在res目录右击新建一个文件名为xml的文件夹(res→New→Directory→xmlres \rightarrow New \rightarrow Directory \rightarrow xmlres→Ne
背景:Android 9.0 之后,应用程序只允许使用 https
类型的网络请求,这是由于 http 存在网络安全隐患
而默认不被支持,下面介绍如何支持使用 http。
在res目录右击新建一个文件名为xml的文件夹(res→New→Directory→xmlres \rightarrow New \rightarrow Directory \rightarrow xmlres→Ne