安卓Android判断网络连接源码实例,尝试联通指定URL,来判断网络连通状况,以get方式获取网络连接,从HttpResponse中获取内容,判断返回码是否是200.
NetTest.rar
(预估有个27文件)
codesc.net
NetTest
.project
843B
project.properties
360B
proguard.cfg
1KB
src
com
laohuai
nettest
MainActivity.java
4KB
AndroidManifest.xml
886B
res
drawable-ldpi
ic_launcher.png
2KB
drawable-hdpi
ic_launcher.png
4KB
drawable-mdpi
ic_launcher.png
3KB
layout
main.xml
789B
values
strings.xml
177B
assets
gen
com
laohuai
nettest
R.java
751B
.classpath
364B
bin
resources.ap_
11KB
NetTest.apk
16KB
classes
com
laohuai
nettest
R$layout.class
397B
R$drawable.class
410B
R$attr.class
343B
MainActivity$1$1.class
1017B
R$id.class
395B
R.class
538B
R$string.class
430B
MainActivity$1.class
2KB
MainActivity.class
6KB
res
drawable-ldpi
ic_launcher.png
2KB
drawable-hdpi
ic_launcher.png
4KB
drawable-mdpi
ic_launcher.png
2KB
classes.dex
7KB
暂无评论